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

Room setting: improve room history and add join rule #2458

Merged
merged 12 commits into from
Dec 1, 2020

Conversation

bmarty
Copy link
Member

@bmarty bmarty commented Nov 26, 2020

Fixes #2442 and last part of #1579

This PR also fix some issue about the wording.

This PR introduces some parent classes to quickly implement a bottom sheet to make a choice between several possibilities.

Screenshot of the change

image

image

image

@bmarty bmarty force-pushed the feature/bma/room_history_join_rule branch from a76ca6a to b94d682 Compare November 27, 2020 08:36
@bmarty bmarty requested a review from ganfra November 27, 2020 08:36
@bmarty bmarty force-pushed the feature/bma/room_history_join_rule branch from b94d682 to c785ea6 Compare November 30, 2020 17:01
Copy link
Member

@ganfra ganfra left a comment

Choose a reason for hiding this comment

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

LGTM, just one small remark. Thanks for the generic bottomsheet

return taskExecutor.executorScope.launchToCallback(coroutineDispatchers.main, callback) {
if (joinRules != null) {
awaitCallback<Unit> {
sendStateEvent(
Copy link
Member

Choose a reason for hiding this comment

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

maybe create a private suspend sendStateEvent to avoid passing twice from callback to coroutine

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for the remark. This will be reworked when migrating this service API to coroutines.

@bmarty bmarty merged commit 51b86e2 into develop Dec 1, 2020
@bmarty bmarty deleted the feature/bma/room_history_join_rule branch December 1, 2020 13:18
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.

Room setting: update join rules and guest access
2 participants