소스 검색

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;
         }