From 9b7e3290002fa13478b9dcf36ca4f60bc1e43600 Mon Sep 17 00:00:00 2001 From: Onuray Sahin Date: Wed, 9 Mar 2022 13:31:29 +0300 Subject: [PATCH] Fix lint error. --- changelog.d/5340.bugfix | 2 +- .../room/detail/timeline/action/MessageActionsViewModel.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/changelog.d/5340.bugfix b/changelog.d/5340.bugfix index 17fd9716c0..4c53f0088c 100644 --- a/changelog.d/5340.bugfix +++ b/changelog.d/5340.bugfix @@ -1 +1 @@ -Support both stable and unstable prefixes \ No newline at end of file +Support both stable and unstable prefixes for Events about Polls and Location \ No newline at end of file diff --git a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/action/MessageActionsViewModel.kt b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/action/MessageActionsViewModel.kt index 81a8150c95..b99dbcc220 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/action/MessageActionsViewModel.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/action/MessageActionsViewModel.kt @@ -211,8 +211,8 @@ class MessageActionsViewModel @AssistedInject constructor(@Assisted noticeEventFormatter.format(timelineEvent, room?.roomSummary()?.isDirect.orFalse()) } in EventType.POLL_START -> { - timelineEvent.root.getClearContent().toModel(catchError = true)?.getBestPollCreationInfo()?.question?.getBestQuestion() - ?: "" + timelineEvent.root.getClearContent().toModel(catchError = true) + ?.getBestPollCreationInfo()?.question?.getBestQuestion() ?: "" } else -> null }