소스 검색

backfill: if the reaction has no timestamp, use the message timestamp

Signed-off-by: Sumner Evans <sumner@beeper.com>
Sumner Evans 2 년 전
부모
커밋
ffa4676b85
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      mautrix_instagram/portal.py

+ 1 - 1
mautrix_instagram/portal.py

@@ -2163,7 +2163,7 @@ class Portal(DBPortal, BasePortal):
                             content=reaction_event,
                             content=reaction_event,
                             type=EventType.REACTION,
                             type=EventType.REACTION,
                             sender=intent.mxid,
                             sender=intent.mxid,
-                            timestamp=reaction.timestamp_ms,
+                            timestamp=reaction.timestamp_ms or message.timestamp_ms,
                         )
                         )
                     )
                     )