mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-29 14:38:45 +03:00
Fix retrieve of the question for poll events
This commit is contained in:
parent
fcfef53043
commit
4a65e1153a
1 changed files with 1 additions and 1 deletions
|
@ -447,7 +447,7 @@ fun Event.isInvitation(): Boolean = type == EventType.STATE_ROOM_MEMBER &&
|
||||||
content?.toModel<RoomMemberContent>()?.membership == Membership.INVITE
|
content?.toModel<RoomMemberContent>()?.membership == Membership.INVITE
|
||||||
|
|
||||||
fun Event.getPollContent(): MessagePollContent? {
|
fun Event.getPollContent(): MessagePollContent? {
|
||||||
return getDecryptedContent().toModel<MessagePollContent>()
|
return getClearContent().toModel<MessagePollContent>()
|
||||||
}
|
}
|
||||||
|
|
||||||
fun Event.supportsNotification() =
|
fun Event.supportsNotification() =
|
||||||
|
|
Loading…
Reference in a new issue