瀏覽代碼

fixup! backfill: fix issue where sometimes we got a duplicate message when paginating

Signed-off-by: Sumner Evans <sumner@beeper.com>
Sumner Evans 2 年之前
父節點
當前提交
076f251c40
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      mautrix_instagram/portal.py

+ 1 - 1
mautrix_instagram/portal.py

@@ -1831,7 +1831,7 @@ class Portal(DBPortal, BasePortal):
         # and over again.
         for item in resp.thread.items:
             # Check in-memory queues for duplicates
-            if item.item_id not in self._msgid_dedup:
+            if item.item_id in self._msgid_dedup:
                 self.log.debug(
                     f"Ignoring message {item.item_id} ({item.client_context}) by {item.user_id}"
                     " as it was already handled (message.id in dedup queue)"