You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
sanity
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user