Эх сурвалжийг харах

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

Signed-off-by: Sumner Evans <sumner@beeper.com>
Sumner Evans 2 жил өмнө
parent
commit
ffa4676b85

+ 1 - 1
mautrix_instagram/portal.py

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