-
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
Changes destination when joining space to explore space rooms #5766
Conversation
@@ -176,6 +176,9 @@ class DefaultNavigator @Inject constructor( | |||
Navigator.PostSwitchSpaceAction.OpenAddExistingRooms -> { | |||
startActivity(context, SpaceManageActivity.newIntent(context, spaceId, ManageType.AddRooms), false) | |||
} | |||
Navigator.PostSwitchSpaceAction.OpenRoomList -> { | |||
startActivity(context, SpaceExploreActivity.newIntent(context, spaceId), 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.
would be handy to have a named parameter for the false
argument
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.
I agree it's better to use named argument for Boolean parameters, as a global rule 💯
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.
looks nice and simple, thanks for the gifs! 💯
tiny comment about a named argument but I don't believe we have a project convention, will leave to you to decide!
I don't have a strong opinion either way. Happy to make the change! |
Type of change
Content
Changes destination when joining space to explore space rooms (instead of not navigating anywhere)
Motivation and context
Closes #5334
I only applied this change when joining a room from the HomeActivity (from both the hamburger menu and opening a notification). Looking at the code, there are other places where you can join the space e.g. RoomDetailActivity, but I would have to guess it's more intentional that we don't navigate away from those destinations
Screenshots / GIFs
TBA
Tests
Tested devices
Checklist