1
0
Fork 0
forked from Nexus/nexus

improve creation of editSource

This commit is contained in:
Henry Hiles 2026-06-23 11:32:37 -04:00
commit 148bc8f95c
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
2 changed files with 11 additions and 2 deletions

View file

@ -54,7 +54,10 @@ class RoomChatController extends AsyncNotifier<IList<Event>?> {
return editedEvent == null
? foundEvent
: foundEvent?.copyWith(content: editedEvent.content);
: foundEvent?.copyWith(
content: editedEvent.content,
localContent: editedEvent.localContent,
);
})
.nonNulls
.toIList();