getMyMembership() doesn't take id anymore

pull/21833/head
Bruno Windels 2018-08-14 11:47:05 +02:00
parent c8b6ccba25
commit 440ebd187d
2 changed files with 3 additions and 3 deletions

View File

@ -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())) {

View File

@ -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") {