mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 13:36:30 +03:00
Do not reverse the list of fresh messages
Both reversed and original order do not make much sense for the bot. Ideally bots should have their own key to get the list of fresh messages in the order of IDs.
This commit is contained in:
@@ -32,7 +32,7 @@ async def main():
|
||||
message.get_snapshot() for message in fresh_messages
|
||||
]
|
||||
fresh_message_snapshots = await asyncio.gather(*fresh_message_snapshot_tasks)
|
||||
for snapshot in reversed(fresh_message_snapshots):
|
||||
for snapshot in fresh_message_snapshots:
|
||||
if not snapshot.is_info:
|
||||
await snapshot.chat.send_text(snapshot.text)
|
||||
await snapshot.message.mark_seen()
|
||||
|
||||
Reference in New Issue
Block a user