Merge pull request #15164 from bigbluebutton/revert-15155-issue-15069
Revert "fix: user not removed from users context on leave"
This commit is contained in:
commit
73668bf345
@ -1,5 +1,6 @@
|
|||||||
import { useContext, useEffect } from 'react';
|
import { useContext, useEffect } from 'react';
|
||||||
import Users, { CurrentUser } from '/imports/api/users';
|
import { CurrentUser } from '/imports/api/users';
|
||||||
|
import Users from '/imports/api/users';
|
||||||
import UsersPersistentData from '/imports/api/users-persistent-data';
|
import UsersPersistentData from '/imports/api/users-persistent-data';
|
||||||
import { UsersContext, ACTIONS } from './context';
|
import { UsersContext, ACTIONS } from './context';
|
||||||
import ChatLogger from '/imports/ui/components/chat/chat-logger/ChatLogger';
|
import ChatLogger from '/imports/ui/components/chat/chat-logger/ChatLogger';
|
||||||
@ -29,15 +30,7 @@ const Adapter = () => {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
removed: (obj) => {
|
removed: () => {},
|
||||||
ChatLogger.debug('usersAdapter::observe::removed', obj);
|
|
||||||
dispatch({
|
|
||||||
type: ACTIONS.REMOVED,
|
|
||||||
value: {
|
|
||||||
user: obj,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user