mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-10 15:02:05 +02:00
Ensure DMs are not lost in the new room list
Fixes https://github.com/vector-im/riot-web/issues/14236
This commit is contained in:
parent
a49b5109c6
commit
be1b2fddaf
@ -530,9 +530,11 @@ export class Algorithm extends EventEmitter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!inTag) {
|
if (!inTag) {
|
||||||
// TODO: Determine if DM and push there instead: https://github.com/vector-im/riot-web/issues/14236
|
if (DMRoomMap.getUserIdForRoomId(room.roomId)) {
|
||||||
newTags[DefaultTagID.Untagged].push(room);
|
newTags[DefaultTagID.DM].push(room);
|
||||||
|
} else {
|
||||||
|
newTags[DefaultTagID.Untagged].push(room);
|
||||||
|
}
|
||||||
// TODO: Remove debug: https://github.com/vector-im/riot-web/issues/14035
|
// TODO: Remove debug: https://github.com/vector-im/riot-web/issues/14035
|
||||||
console.log(`[DEBUG] "${room.name}" (${room.roomId}) is Untagged`);
|
console.log(`[DEBUG] "${room.name}" (${room.roomId}) is Untagged`);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user