-
Notifications
You must be signed in to change notification settings - Fork 731
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert WidgetService to suspend functions #3073
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR, LGTM, just one remark about formatting (it's super annoying, I know...)
"set_bot_power" -> setBotPower(mediator, eventData).run { true } | ||
"set_plumbing_state" -> setPlumbingState(mediator, eventData).run { true } | ||
"set_widget" -> setWidget(mediator, eventData).run { true } | ||
"m.sticker" -> pickStickerData(mediator, eventData).run { true } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you revert the formatting changes please? There is a problem in the IDE about that, and we have not decided if we want to lose the nice alignment of arrows. The trick is to remove the latest }
of the file and type it again. The formatting will be restored...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haha rip. Sure!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WOW! You weren't kidding about the trick. 😂
Signed-off-by: Dominic Fischer <[email protected]>
d86e7e9
to
c548a3d
Compare
RoomDetailAction.QuickActionSetAvatar -> handleQuickSetAvatar() | ||
is RoomDetailAction.SetAvatarAction -> handleSetNewAvatar(action) | ||
RoomDetailAction.QuickActionSetTopic -> _viewEvents.post(RoomDetailViewEvents.OpenRoomSettings) | ||
is RoomDetailAction.ShowRoomAvatarFullScreen -> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting is still lost here
WidgetAction.LoadFormattedUrl -> loadFormattedUrl(forceFetchToken = false) | ||
WidgetAction.DeleteWidget -> handleDeleteWidget() | ||
WidgetAction.RevokeWidget -> handleRevokeWidget() | ||
WidgetAction.OnTermsReviewed -> loadFormattedUrl(forceFetchToken = false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and here
Signed-off-by: Dominic Fischer <[email protected]>
R.id.video_call -> callManager.getCallsByRoomId(state.roomId).isEmpty() | ||
R.id.hangup_call -> callManager.getCallsByRoomId(state.roomId).isNotEmpty() | ||
R.id.search -> true | ||
R.id.dev_tools -> vectorPreferences.developerMode() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, here too...
Signed-off-by: Dominic Fischer <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update!
Signed-off-by: Dominic Fischer [email protected]
Pull Request Checklist