fix(rss): stop popping oldest group in _trim_messages_groups

Removed the pop operation that discarded the oldest message group during trimming, preventing unintended loss of messages.
This commit is contained in:
vvzvlad
2026-05-17 22:28:28 +03:00
parent 45cd18af99
commit 6e2c1f79d3
-3
View File
@@ -128,9 +128,6 @@ async def _trim_messages_groups(messages_groups: list[list[Message]], limit: int
"""
Trim messages groups to limit
"""
if messages_groups: # Remove the oldest group (the one with the lowest message id based on the first message's date)
messages_groups.pop()
if len(messages_groups) > limit: # Trim groups if they exceed the specified limit
messages_groups = messages_groups[:limit]