mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-17 11:48:51 +03:00
Fix / try to get edited message content first
This commit is contained in:
parent
1feb1f9c3f
commit
abb1c3f3c4
1 changed files with 2 additions and 1 deletions
|
@ -118,7 +118,8 @@ class NotifiableEventResolver(val stringProvider: StringProvider,
|
|||
notifiableEvent.matrixID = session.sessionParams.credentials.userId
|
||||
return notifiableEvent
|
||||
} else {
|
||||
val body = event.root.getClearContent().toModel<MessageContent>()?.body
|
||||
val body = event.annotations?.editSummary?.aggregatedContent?.toModel<MessageContent>()?.body
|
||||
?: event.root.getClearContent().toModel<MessageContent>()?.body
|
||||
?: stringProvider.getString(R.string.notification_unknown_new_event)
|
||||
val roomName = room.roomSummary?.displayName ?: ""
|
||||
val senderDisplayName = event.senderName ?: ""
|
||||
|
|
Loading…
Add table
Reference in a new issue