Browse Source

Un-reverse messages in non-MSC2716 fallback backfill mode

The reversing was accidentally copied from Telegram (which also reverses
the list before calling batch_send), here it's the wrong order.
Tulir Asokan 2 years ago
parent
commit
0fcc566462
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mautrix_instagram/portal.py

+ 1 - 1
mautrix_instagram/portal.py

@@ -2283,7 +2283,7 @@ class Portal(DBPortal, BasePortal):
                 await intent.send_message_event(
                     self.mxid, evt.type, evt.content, timestamp=evt.timestamp
                 )
-                for evt, intent in zip(reversed(batch_messages), reversed(intents))
+                for evt, intent in zip(batch_messages, intents)
             ]
         await self._finish_batch(event_ids, message_infos)
         if not forward: