Fix edited poll preview in room list.

This commit is contained in:
Onuray Sahin 2023-01-11 15:57:39 +03:00
parent 49367824b0
commit 912d3e5055
1 changed files with 1 additions and 1 deletions

View File

@ -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 -> {