There was an error while loading. Please reload this page.
1 parent 168d31f commit 44af0c2Copy full SHA for 44af0c2
1 file changed
lib/services/backend/actions/chat_actions.dart
@@ -339,8 +339,12 @@ class ChatActions {
339
if (dbChat != null) {
340
inputMessage.chat.target = dbChat;
341
342
- // Fallback: resolve sender against this chat's linked participants
343
- if (handleToLink == null && inputMessage.handleId != null && inputMessage.handleId! > 0) {
+ // Fallback: resolve sender against this chat's linked participants (skip
+ // for from-me messages, same mislink reason as the hasSenderHandle guard above).
344
+ if (handleToLink == null &&
345
+ !(inputMessage.isFromMe ?? false) &&
346
+ inputMessage.handleId != null &&
347
+ inputMessage.handleId! > 0) {
348
handleToLink =
349
List<Handle>.from(dbChat.handles).firstWhereOrNull((h) => h.originalROWID == inputMessage.handleId);
350
}
0 commit comments