Skip to content
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

Merged
merged 1 commit into from
Mar 30, 2021

Conversation

Dominaezzz
Copy link
Contributor

Signed-off-by: Dominic Fischer [email protected]

Pull Request Checklist

  • Changes has been tested on an Android device or Android emulator with API 21
  • UI change has been tested on both light and dark themes
  • Pull request is based on the develop branch
  • Pull request updates CHANGES.md
  • Pull request includes screenshots or videos if containing UI changes
  • Pull request includes a sign off

Copy link
Member

@bmarty bmarty left a 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)
Copy link
Member

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()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try catch?

@Dominaezzz Dominaezzz force-pushed the suspend_functions_10 branch from a729bac to bc68075 Compare March 29, 2021 19:10
Copy link
Member

@bmarty bmarty left a 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

@bmarty bmarty merged commit 67c2b58 into element-hq:develop Mar 30, 2021
@Dominaezzz Dominaezzz deleted the suspend_functions_10 branch March 30, 2021 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants