Skip to content

Commit

Permalink
Consider sent messages as read
Browse files Browse the repository at this point in the history
  • Loading branch information
singpolyma committed Dec 9, 2024
1 parent 4003725 commit f728d9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snikket/Chat.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1058,7 +1058,7 @@ class Channel extends Chat {
serverIds[m.serverId] = true;
}
}
final readIndex = dedupedMessages.findIndex((m) -> m.serverId == readUpTo());
final readIndex = dedupedMessages.findIndex((m) -> m.serverId == readUpTo() || !m.isIncoming());
if (readIndex < 0) {
setUnreadCount(unreadCount() + dedupedMessages.length);
} else {
Expand Down

0 comments on commit f728d9d

Please sign in to comment.