improve creation of editSource
This commit is contained in:
parent
b037dc06c8
commit
148bc8f95c
2 changed files with 11 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue