V0.12.19 Scroll full page issue bug fixes
This commit is contained in:
@@ -263,6 +263,11 @@ export default function Chat() {
|
||||
socket.emit('group:join-room', { groupId: group.id });
|
||||
// Reload the full group list so name/metadata is correct
|
||||
loadGroups();
|
||||
// Refresh user-group memberships so NavDrawer shows the Group Messages
|
||||
// item immediately if this is the user's first user-group DM assignment
|
||||
api.getMyUserGroups().then(({ userGroups }) => {
|
||||
setFeatures(prev => ({ ...prev, userGroupMemberships: (userGroups || []).map(g => g.id) }));
|
||||
}).catch(() => {});
|
||||
};
|
||||
const handleGroupDeleted = ({ groupId }) => {
|
||||
// Leave the socket room so we stop receiving events for this group
|
||||
|
||||
Reference in New Issue
Block a user