You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
fallback to room summary for dm detection
This commit is contained in:
@@ -96,10 +96,8 @@ export default class DMRoomMap {
|
||||
if (this.roomToUser[roomId] === undefined) {
|
||||
// no entry? if the room is an invite, look for the is_direct hint.
|
||||
const room = this.matrixClient.getRoom(roomId);
|
||||
// TODO Use SUMMARYAPI to fix DM detection?
|
||||
if (room) {
|
||||
const me = room.getMember(this.matrixClient.getUserId());
|
||||
return me && me.getDMInviter();
|
||||
return room.getDMInviter();
|
||||
}
|
||||
}
|
||||
return this.roomToUser[roomId];
|
||||
|
||||
Reference in New Issue
Block a user