mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-16 12:00:03 +03:00
Fixing some previews for end poll events
This commit is contained in:
parent
7683b8325c
commit
48393ee5d1
2 changed files with 4 additions and 0 deletions
|
@ -35,5 +35,6 @@ object RoomSummaryConstants {
|
|||
EventType.REACTION
|
||||
) +
|
||||
EventType.POLL_START.values +
|
||||
EventType.POLL_END.values +
|
||||
EventType.STATE_ROOM_BEACON_INFO.values
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue