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

Changes destination when joining space to explore space rooms #5766

Merged
merged 5 commits into from
Apr 14, 2022

Conversation

ericdecanini
Copy link
Contributor

@ericdecanini ericdecanini commented Apr 14, 2022

Type of change

  • Feature
  • Bugfix
  • Technical
  • Other :

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

Before After
SVID_20220414_154632_1 SVID_20220414_153806_1

Tests

  • Invite a test account to a new space
  • On the test account, accept the invitation via the hamburger menu. See that you're in the explore space screen
  • Now leave the room, background the app, and repeat step 1
  • You should get a notification saying you've been invited to the room. Open that notification and accept the invitation. See again that you're in the explore space screen

Tested devices

  • Physical
  • Emulator
  • OS version(s): Android 10

Checklist

@github-actions
Copy link

github-actions bot commented Apr 14, 2022

Unit Test Results

114 files  ±0  114 suites  ±0   1m 21s ⏱️ -9s
201 tests ±0  201 ✔️ ±0  0 💤 ±0  0 ±0 
674 runs  ±0  674 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit 8b893c4. ± Comparison against base commit 9b7e94e.

♻️ This comment has been updated with latest results.

@ericdecanini ericdecanini marked this pull request as ready for review April 14, 2022 14:32
@ericdecanini ericdecanini requested review from a team and ouchadam and removed request for a team April 14, 2022 14:32
@@ -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)
Copy link
Contributor

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

Copy link
Member

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 💯

Copy link
Contributor

@ouchadam ouchadam left a 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!

@ericdecanini
Copy link
Contributor Author

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!

@ericdecanini ericdecanini merged commit ace8ae6 into develop Apr 14, 2022
@ericdecanini ericdecanini deleted the bugfix/eric/joining-space-landing branch April 14, 2022 15:58
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.

Update landing location after user joins a Space
3 participants