-
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
Unable to join room by name #4345
Conversation
…t when linking from the public rooms - the activity is still finished causing the popup to not actually display
…vigation, not the bottomsheets - the bottomsheets require the activity to stay around as they host the sheet instance, fixes missing join sheets
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.
LGTM one remark about missing Hilt annotation
@@ -51,6 +52,7 @@ data class RoomPreviewData( | |||
get() = MatrixItem.RoomItem(roomId, roomName ?: roomAlias, avatarUrl) | |||
} | |||
|
|||
@AndroidEntryPoint |
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.
This is out of scope of this PR, but I made a quick check and this annotation is also missing for:
- DebugPermissionActivity
- PinActivity
- SignedOutActivity
- SpacePeopleActivity
- SpacePreviewActivity
I think we can take the opportunity to add it also there. Thanks! CC @ganfra
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.
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.
Those Activities should be opened by the allScreensTest(), so maybe we should create a dedicated PR with those change, IDK. But it definitely need to be fixed before Hilt is released to the store, so better to do it ASAP
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.
agreed we should fix these asap, ideally a separate PR would have been better, at least the change within this PR is quite small
I also double checked the remaining activities and couldn't find any others that were missing the entry point 🤞
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.
Perfect, thanks Adam
Fixes #4255
When joining a room by name a
Can't join
error is displayed, this was caused by a missingMatrixToBottomSheet.InteractionListener
However the current flow was finishing the activity which meant the sheet was never displayed.
The fix was to only trigger the navigation interceptor for the room activity navigation instead of including the bottom sheets. The bottom sheet instances live within the activity.
EntryPoint