mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08:00
Fix edited poll preview in room list.
This commit is contained in:
parent
49367824b0
commit
912d3e5055
@ -130,7 +130,7 @@ class DisplayableEventFormatter @Inject constructor(
|
||||
span { }
|
||||
}
|
||||
in EventType.POLL_START.values -> {
|
||||
timelineEvent.root.getClearContent().toModel<MessagePollContent>(catchError = true)?.getBestPollCreationInfo()?.question?.getBestQuestion()
|
||||
(timelineEvent.getVectorLastMessageContent() as? MessagePollContent)?.getBestPollCreationInfo()?.question?.getBestQuestion()
|
||||
?: stringProvider.getString(R.string.sent_a_poll)
|
||||
}
|
||||
in EventType.POLL_RESPONSE.values -> {
|
||||
|
Loading…
Reference in New Issue
Block a user