Fixing some previews for end poll events

This commit is contained in:
Maxime NATUREL 2023-02-01 10:17:38 +01:00
parent 7683b8325c
commit 48393ee5d1
2 changed files with 4 additions and 0 deletions

View File

@ -35,5 +35,6 @@ object RoomSummaryConstants {
EventType.REACTION
) +
EventType.POLL_START.values +
EventType.POLL_END.values +
EventType.STATE_ROOM_BEACON_INFO.values
}

View File

@ -219,6 +219,9 @@ class MessageActionsViewModel @AssistedInject constructor(
(timelineEvent.getVectorLastMessageContent() as? MessagePollContent)?.getBestPollCreationInfo()?.question?.getBestQuestion()
?: stringProvider.getString(R.string.message_reply_to_poll_preview)
}
in EventType.POLL_END.values -> {
stringProvider.getString(R.string.message_reply_to_ended_poll_preview)
}
else -> null
}
}