建议优化离线消息的 Thread 聚合策略

描述: Alma 离线期间,Telegram 服务器缓存的多条消息在上线后被逐条拉取,每条独立创建为新 thread,导致左侧聊天列表出现大量单条对话。

而离线结束后从同个对话发送的消息,因走实时通道,又能正确归属于已有 thread。

建议: 在批量拉取离线消息时,增加一个聚合逻辑——

  • 按 sender(同一来源账号)

  • 按消息时间差(如相邻消息间隔 < 5 分钟)

  • 上线后拉取的第一批缓存消息归入同一个 thread

而不是「每拉一条就开一个新 thread」。

复现场景: 离线期间从 TG 发 n 条消息 → 上线后左侧出现 n 个独立 thread → 再从 TG 发一条 → 归入最后一个 thread。

Please authenticate to join the conversation.

Upvoters
Status

In Review

Board
💡

Feature Request

Date

6 days ago

Author

oppih Xue

Subscribe to post

Get notified by email when there are changes.