From fbe5d177851ce836ca33afb09ab981511e4c87b3 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Wed, 24 Feb 2021 18:27:59 -0700 Subject: [PATCH] sanity --- src/components/views/elements/PersistentApp.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/views/elements/PersistentApp.js b/src/components/views/elements/PersistentApp.js index eb5f4eab7d..7801076c66 100644 --- a/src/components/views/elements/PersistentApp.js +++ b/src/components/views/elements/PersistentApp.js @@ -57,9 +57,9 @@ export default class PersistentApp extends React.Component { }); }; - _onMyMembership = async (room) => { + _onMyMembership = async (room, membership) => { const persistentWidgetInRoomId = ActiveWidgetStore.getRoomId(this.state.persistentWidgetId); - if (room.getMyMembership() !== "join") { + if (membership !== "join") { // we're not in the room anymore - delete if (room.roomId === persistentWidgetInRoomId) { ActiveWidgetStore.destroyPersistentWidget(this.state.persistentWidgetId);