修复用户状态问题
This commit is contained in:
@@ -358,9 +358,7 @@ class RedisMessageSystem:
|
||||
# 确保消息按ID正序排序(时间顺序)
|
||||
messages.sort(key=lambda x: x.get("message_id", 0))
|
||||
|
||||
# 如果是获取最新消息(since=0),需要保持倒序(最新的在前面)
|
||||
if since == 0:
|
||||
messages.reverse()
|
||||
return messages
|
||||
|
||||
return messages
|
||||
|
||||
|
||||
Reference in New Issue
Block a user