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
1 changed files with 1 additions and 1 deletions

View File

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