Преглед изворни кода

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

Danilo Bargen пре 7 година
родитељ
комит
e16bb383bf
1 измењених фајлова са 1 додато и 1 уклоњено
  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;
         }