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:
Ramón Souza 2022-06-10 14:45:53 +01:00 committed by GitHub
commit 73668bf345
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,6 @@
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 { UsersContext, ACTIONS } from './context';
import ChatLogger from '/imports/ui/components/chat/chat-logger/ChatLogger';
@ -29,15 +30,7 @@ const Adapter = () => {
},
});
},
removed: (obj) => {
ChatLogger.debug('usersAdapter::observe::removed', obj);
dispatch({
type: ACTIONS.REMOVED,
value: {
user: obj,
},
});
},
removed: () => {},
});
}, []);