-
-
Notifications
You must be signed in to change notification settings - Fork 812
Prevent invites from showing up in breadcrumbs #8344
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #8344 +/- ##
===========================================
- Coverage 30.47% 30.47% -0.01%
===========================================
Files 889 889
Lines 50547 50551 +4
Branches 12861 12864 +3
===========================================
Hits 15405 15405
- Misses 35142 35146 +4
|
turt2live
left a comment
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 requires product review as it is currently a feature, not a bug
kittykat
left a comment
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 good from the product side 👍
src/stores/BreadcrumbsStore.ts
Outdated
| const membership = room?room.getMyMembership():""; | ||
| if (room && membership==='join') await this.appendRoom(room); |
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.
| const membership = room?room.getMyMembership():""; | |
| if (room && membership==='join') await this.appendRoom(room); | |
| const membership = room?.getMyMembership(); | |
| if (membership === "join") await this.appendRoom(room); |
| } else if (payload.action === Action.JoinRoom) { | ||
| const room = this.matrixClient.getRoom(payload.roomId); | ||
| if (room) await this.appendRoom(room); |
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.
Hm why do we need to add this?
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 line checks whether the user has successfully joined the room or not , then only we are adding that particular room to the breadcrumbs.
germain-gg
left a comment
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 good to me 👍
Fixes element-hq/element-web#21794
Signed-off-by: Ritik Kumar [email protected]
This PR currently has no changelog labels, so will not be included in changelogs.
A reviewer can add one of:
T-Deprecation,T-Enhancement,T-Defect,T-Taskto indicate what type of change this is, or addType: [enhancement/defect/task]to the description and I'll add them for you.Preview: https://pr8344--matrix-react-sdk.netlify.app
⚠️ Do you trust the author of this PR? Maybe this build will steal your keys or give you malware. Exercise caution. Use test accounts.