V0.12.19 Scroll full page issue bug fixes

This commit is contained in:
2026-03-24 11:15:16 -04:00
parent d0c15287c4
commit 780020fc46
5 changed files with 9 additions and 4 deletions

View File

@@ -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