From 440ebd187da349414520e89202e5c52903d44d82 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 14 Aug 2018 11:47:05 +0200 Subject: [PATCH] getMyMembership() doesn't take id anymore --- src/Rooms.js | 4 ++-- src/stores/RoomListStore.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Rooms.js b/src/Rooms.js index 024a4f1d8c..96e7c140bb 100644 --- a/src/Rooms.js +++ b/src/Rooms.js @@ -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())) { diff --git a/src/stores/RoomListStore.js b/src/stores/RoomListStore.js index e415389423..7eb7b79509 100644 --- a/src/stores/RoomListStore.js +++ b/src/stores/RoomListStore.js @@ -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") {