fix(feishu): keep source.message_id in step with the batched event id

Text and media batching advance the coalesced MessageEvent.message_id to
the newest message but left source.message_id at the first one, so after
a batch the reply anchor and the event id disagreed. Advance both together
at the two enqueue sites.
This commit is contained in:
teknium1
2026-09-12 08:13:44 -07:00
committed by Teknium
parent f9dac388ba
commit 2175df4034
2 changed files with 21 additions and 11 deletions
+2
View File
@@ -2592,6 +2592,7 @@ class FeishuAdapter(BasePlatformAdapter):
existing.timestamp = event.timestamp
if event.message_id:
existing.message_id = event.message_id
existing.source.message_id = event.message_id
self._schedule_media_batch_flush(key)
def _schedule_media_batch_flush(self, key: str) -> None:
@@ -2850,6 +2851,7 @@ class FeishuAdapter(BasePlatformAdapter):
existing.timestamp = event.timestamp
if event.message_id:
existing.message_id = event.message_id
existing.source.message_id = event.message_id
self._pending_text_batch_counts[key] = next_count
self._schedule_text_batch_flush(key)