mirror of
https://github.com/element-hq/element-web
synced 2024-11-25 02:35:48 +03:00
sanity
This commit is contained in:
parent
e2fb9b3ae8
commit
fbe5d17785
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
const persistentWidgetInRoomId = ActiveWidgetStore.getRoomId(this.state.persistentWidgetId);
|
||||||
if (room.getMyMembership() !== "join") {
|
if (membership !== "join") {
|
||||||
// we're not in the room anymore - delete
|
// we're not in the room anymore - delete
|
||||||
if (room.roomId === persistentWidgetInRoomId) {
|
if (room.roomId === persistentWidgetInRoomId) {
|
||||||
ActiveWidgetStore.destroyPersistentWidget(this.state.persistentWidgetId);
|
ActiveWidgetStore.destroyPersistentWidget(this.state.persistentWidgetId);
|
||||||
|
|
Loading…
Reference in a new issue