Fix retrieve of the question for poll events

This commit is contained in:
Maxime NATUREL 2022-11-14 10:18:42 +01:00
parent fcfef53043
commit 4a65e1153a

View file

@ -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() =