mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-16 09:51:31 +02:00
ChatCreateOrReuse show only rooms both you and the other party still in
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
2471f92331
commit
df26840d9e
@ -52,7 +52,12 @@ export default class ChatCreateOrReuseDialog extends React.Component {
|
|||||||
const tiles = [];
|
const tiles = [];
|
||||||
for (const roomId of dmRooms) {
|
for (const roomId of dmRooms) {
|
||||||
const room = client.getRoom(roomId);
|
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 isInvite = room.getMyMembership() === "invite";
|
||||||
const highlight = room.getUnreadNotificationCount('highlight') > 0 || isInvite;
|
const highlight = room.getUnreadNotificationCount('highlight') > 0 || isInvite;
|
||||||
tiles.push(
|
tiles.push(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user