mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08:00
Fix / try to get edited message content first
This commit is contained in:
parent
1feb1f9c3f
commit
abb1c3f3c4
@ -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…
Reference in New Issue
Block a user