mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 19:56:47 +03:00
Show DMs in space for invited members too, to match Android impl
This commit is contained in:
parent
cf384c2a54
commit
e18120f412
1 changed files with 2 additions and 1 deletions
|
@ -361,7 +361,8 @@ export class SpaceStoreClass extends AsyncStoreWithClient<IState> {
|
||||||
const space = this.matrixClient?.getRoom(spaceId);
|
const space = this.matrixClient?.getRoom(spaceId);
|
||||||
|
|
||||||
// Add relevant DMs
|
// Add relevant DMs
|
||||||
space?.getJoinedMembers().forEach(member => {
|
space?.getMembers().forEach(member => {
|
||||||
|
if (member.membership !== "join" && member.membership !== "invite") return;
|
||||||
DMRoomMap.shared().getDMRoomsForUserId(member.userId).forEach(roomId => {
|
DMRoomMap.shared().getDMRoomsForUserId(member.userId).forEach(roomId => {
|
||||||
roomIds.add(roomId);
|
roomIds.add(roomId);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue