Fix retrieve of the question for poll events
This commit is contained in:
parent
fcfef53043
commit
4a65e1153a
@ -447,7 +447,7 @@ fun Event.isInvitation(): Boolean = type == EventType.STATE_ROOM_MEMBER &&
|
||||
content?.toModel<RoomMemberContent>()?.membership == Membership.INVITE
|
||||
|
||||
fun Event.getPollContent(): MessagePollContent? {
|
||||
return getDecryptedContent().toModel<MessagePollContent>()
|
||||
return getClearContent().toModel<MessagePollContent>()
|
||||
}
|
||||
|
||||
fun Event.supportsNotification() =
|
||||
|
Loading…
x
Reference in New Issue
Block a user