Introduce Membership type
This commit is contained in:
parent
3c6fd58628
commit
da99bad7b9
115 changed files with 582 additions and 526 deletions
|
@ -95,7 +95,7 @@ export default class VoipUserMapper {
|
|||
if (!virtualRoomEvent || !virtualRoomEvent.getContent()) return null;
|
||||
const nativeRoomID = virtualRoomEvent.getContent()["native_room"];
|
||||
const nativeRoom = cli.getRoom(nativeRoomID);
|
||||
if (!nativeRoom || nativeRoom.getMyMembership() !== "join") return null;
|
||||
if (!nativeRoom || nativeRoom.getMyMembership() !== Membership.Join) return null;
|
||||
|
||||
return nativeRoomID;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue