Explorar o código

Don't rely on sortKey to be unique when marking msg as read (#606)

Danilo Bargen %!s(int64=6) %!d(string=hai) anos
pai
achega
e16bb383bf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/partials/messenger.ts

+ 1 - 1
src/partials/messenger.ts

@@ -805,7 +805,7 @@ class ConversationController {
         }
 
         // Update lastReadMsg
-        if (this.lastReadMsg === null || message.sortKey > this.lastReadMsg.sortKey) {
+        if (this.lastReadMsg === null || message.sortKey >= this.lastReadMsg.sortKey) {
             this.lastReadMsg = message;
         }