Skip to content

Commit 39ee766

Browse files
Message_list: Make topic headers case-insensitive
This change in the commit makes the message list's topic headers match that behavior, so messages whose topics differ only in case (like "missing string" and "Missing string") share a single header. This brings the behavior in line with Zulip web.
1 parent fb6291f commit 39ee766

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/model/message_list.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ mixin _MessageSequence {
321321
bool haveSameRecipient(Message prevMessage, Message message) {
322322
if (prevMessage is StreamMessage && message is StreamMessage) {
323323
if (prevMessage.streamId != message.streamId) return false;
324-
if (prevMessage.topic != message.topic) return false;
324+
if (prevMessage.topic.toLowerCase() != message.topic.toLowerCase()) return false;
325325
} else if (prevMessage is DmMessage && message is DmMessage) {
326326
if (!_equalIdSequences(prevMessage.allRecipientIds, message.allRecipientIds)) {
327327
return false;

0 commit comments

Comments
 (0)