fix and update

This commit is contained in:
lendry
2026-06-30 14:12:20 +03:00
parent 2a88c87e94
commit 879875508f
7 changed files with 45 additions and 25 deletions

View File

@@ -15,7 +15,7 @@ import { ChatRoom, fetchChatRooms, getApiErrorMessage, setChatRoomPinned } from
import { useToast } from '@/components/id/toast-provider';
export function FamilySidebarPanel() {
const { user, token } = useAuth();
const { user, token, isContentReady } = useAuth();
const {
group,
groupSummaries,
@@ -25,7 +25,7 @@ export function FamilySidebarPanel() {
setSelectedGroupId,
presenceByUserId,
refresh
} = useSelectedFamily(Boolean(user && token));
} = useSelectedFamily(Boolean(user && token && isContentReady));
const { openChatWithMember } = useFamilyOverlay();
const { showToast } = useToast();
const [inviteOpen, setInviteOpen] = useState(false);

View File

@@ -86,7 +86,7 @@ function formatMessageTime(value: string) {
}
export function MiniFamilyChat() {
const { user, token, isPinLocked } = useAuth();
const { user, token, isPinLocked, isContentReady } = useAuth();
const { showToast } = useToast();
const { subscribe } = useRealtime();
const {
@@ -96,7 +96,7 @@ export function MiniFamilyChat() {
selectedGroupId,
setSelectedGroupId,
presenceByUserId
} = useSelectedFamily(Boolean(user && token && !isPinLocked));
} = useSelectedFamily(Boolean(user && token && !isPinLocked && isContentReady));
const {
miniChatOpen,
openMiniChat,