Merge b2a65432a3
into 224c054b04
This commit is contained in:
commit
6439fbe267
|
@ -121,6 +121,15 @@ const RoomMembersView = (): React.ReactElement => {
|
|||
return () => subscription?.unsubscribe();
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
const unsubscribe = navigation.addListener('focus', () => {
|
||||
const { allUsers } = state;
|
||||
fetchMembers(allUsers);
|
||||
});
|
||||
|
||||
return unsubscribe;
|
||||
}, [navigation]);
|
||||
|
||||
useEffect(() => {
|
||||
const fetchRoles = () => {
|
||||
if (isGroupChat(state.room)) {
|
||||
|
|
Loading…
Reference in New Issue