fix null edit source
This commit is contained in:
parent
b5bd752855
commit
77b81948b0
2 changed files with 5 additions and 2 deletions
|
|
@ -68,7 +68,10 @@ class MessageController extends AsyncNotifier<Message?> {
|
|||
"body": newContent?["body"] ?? content["body"],
|
||||
"eventType": type,
|
||||
"avatarUrl": author?.content["avatar_url"],
|
||||
"editSource": event.localContent?.editSource,
|
||||
"editSource":
|
||||
event.localContent?.editSource ??
|
||||
newContent?["body"] ??
|
||||
content["body"],
|
||||
"displayName": author?.content["displayname"]?.isNotEmpty == true
|
||||
? author?.content["displayname"]
|
||||
: event.authorId.substring(1).split(":")[0],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue