Fix lint error.

This commit is contained in:
Onuray Sahin 2022-03-09 13:31:29 +03:00
parent 67a24b38cb
commit 9b7e329000
2 changed files with 3 additions and 3 deletions

View file

@ -1 +1 @@
Support both stable and unstable prefixes
Support both stable and unstable prefixes for Events about Polls and Location

View file

@ -211,8 +211,8 @@ class MessageActionsViewModel @AssistedInject constructor(@Assisted
noticeEventFormatter.format(timelineEvent, room?.roomSummary()?.isDirect.orFalse())
}
in EventType.POLL_START -> {
timelineEvent.root.getClearContent().toModel<MessagePollContent>(catchError = true)?.getBestPollCreationInfo()?.question?.getBestQuestion()
?: ""
timelineEvent.root.getClearContent().toModel<MessagePollContent>(catchError = true)
?.getBestPollCreationInfo()?.question?.getBestQuestion() ?: ""
}
else -> null
}