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

View File

@@ -611,7 +611,7 @@ export default function GroupManagerPage({ isMobile = false, onProfile, onHelp,
)}
{/* Content */}
<div style={{ flex:1, display:'flex', overflow: isMobile ? 'auto' : 'hidden', paddingBottom: isMobile ? 70 : 0 }}>
<div style={{ flex:1, display:'flex', overflow: isMobile ? 'auto' : 'hidden', paddingBottom: isMobile ? 'calc(82px + env(safe-area-inset-bottom, 0px))' : 0 }}>
{tab==='all' && <AllGroupsTab allUsers={allUsers} onRefresh={onRefresh} isMobile={isMobile} onIF={onIF} onIB={onIB} />}
{tab==='dm' && <DirectMessagesTab allUserGroups={allUserGroups} onRefresh={onRefresh} refreshKey={refreshKey} isMobile={isMobile} onIF={onIF} onIB={onIB} />}
{tab==='u2u' && <U2URestrictionsTab allUserGroups={allUserGroups} isMobile={isMobile} onIF={onIF} onIB={onIB} />}