fixed bug that prevents sending messages if reply was triggered in a different chat

This commit is contained in:
2026-08-14 09:47:56 +02:00
parent d27312afdf
commit 09d4ecda78
4 changed files with 41 additions and 2 deletions
@@ -93,9 +93,13 @@ class ChatBloc
_stopLongPoll();
add(
Emit(
// A reply reference belongs to the room it was picked in — carrying it
// into the next chat makes every send there fail on an unrelated
// parent id. ChatTextfield restores this room's draft reply after.
(s) => s.copyWith(
currentToken: token,
chatResponse: null,
referenceMessageId: null,
hasMoreOld: true,
isLoadingOlder: false,
),