mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:55:00 +08:00
Merge pull request #3225 from matrix-org/t3chguy/create_reuse_dialog_hide_left
ChatCreateOrReuse show only rooms both you and the other party still in
This commit is contained in:
commit
e53b922290
@ -52,7 +52,12 @@ export default class ChatCreateOrReuseDialog extends React.Component {
|
||||
const tiles = [];
|
||||
for (const roomId of dmRooms) {
|
||||
const room = client.getRoom(roomId);
|
||||
if (room) {
|
||||
if (room && room.getMyMembership() === "join") {
|
||||
const member = room.getMember(this.props.userId);
|
||||
if (!member || member.membership !== "join") {
|
||||
continue;
|
||||
}
|
||||
|
||||
const isInvite = room.getMyMembership() === "invite";
|
||||
const highlight = room.getUnreadNotificationCount('highlight') > 0 || isInvite;
|
||||
tiles.push(
|
||||
|
Loading…
Reference in New Issue
Block a user