fix dm detection and conf call code with lazy loading
This commit is contained in:
parent
7ea913ccec
commit
d87d34030a
4 changed files with 29 additions and 27 deletions
|
@ -96,9 +96,10 @@ 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.getDMInviter();
|
||||
return me && me.getDMInviter();
|
||||
}
|
||||
}
|
||||
return this.roomToUser[roomId];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue