getMyMembership() doesn't take id anymore
parent
c8b6ccba25
commit
440ebd187d
|
@ -45,7 +45,7 @@ export function getOnlyOtherMember(room, myUserId) {
|
|||
function _isConfCallRoom(room, myUserId, conferenceHandler) {
|
||||
if (!conferenceHandler) return false;
|
||||
|
||||
const myMembership = room.getMyMembership(myUserId);
|
||||
const myMembership = room.getMyMembership();
|
||||
if (myMembership != "join") {
|
||||
return false;
|
||||
}
|
||||
|
@ -81,7 +81,7 @@ export function isConfCallRoom(room, myUserId, conferenceHandler) {
|
|||
}
|
||||
|
||||
export function looksLikeDirectMessageRoom(room, myUserId) {
|
||||
const myMembership = room.getMyMembership(myUserId);
|
||||
const myMembership = room.getMyMembership();
|
||||
const me = room.getMember(myUserId);
|
||||
|
||||
if (myMembership == "join" || myMembership === "ban" || (me && me.isKicked())) {
|
||||
|
|
|
@ -174,7 +174,7 @@ class RoomListStore extends Store {
|
|||
|
||||
this._matrixClient.getRooms().forEach((room, index) => {
|
||||
const myUserId = this._matrixClient.getUserId();
|
||||
const membership = room.getMyMembership(myUserId);
|
||||
const membership = room.getMyMembership();
|
||||
const me = room.getMember(myUserId);
|
||||
|
||||
if (membership == "invite") {
|
||||
|
|
Loading…
Reference in New Issue