-
Notifications
You must be signed in to change notification settings - Fork 742
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 MembershipService to suspend functions #3080
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. 2 remarks and Buildkite is not happy.
@@ -1088,11 +1088,15 @@ class RoomDetailViewModel @AssistedInject constructor( | |||
} | |||
|
|||
private fun handleRejectInvite() { | |||
room.leave(null, NoOpMatrixCallback()) | |||
viewModelScope.launch { | |||
room.leave(null) |
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.
try catch?
} | ||
|
||
private fun handleAcceptInvite() { | ||
room.join(callback = NoOpMatrixCallback()) | ||
viewModelScope.launch { | ||
room.join() |
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.
try catch?
Signed-off-by: Dominic Fischer <[email protected]>
a729bac
to
bc68075
Compare
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! LGTM
Signed-off-by: Dominic Fischer [email protected]
Pull Request Checklist