Skip to content

Commit f21a833

Browse files
committed
fix(preview): show meet title properly
1 parent 7e2a1e7 commit f21a833

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

frontend/components.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ declare module "vue" {
5454
LucideHand: typeof import("~icons/lucide/hand")["default"];
5555
LucideHome: typeof import("~icons/lucide/home")["default"];
5656
LucideLoader: typeof import("~icons/lucide/loader")["default"];
57+
LucideMessageCircle: typeof import(
58+
"~icons/lucide/message-circle",
59+
)["default"];
5760
LucideMessageSquare: typeof import(
5861
"~icons/lucide/message-square",
5962
)["default"];

frontend/src/composables/useMeetingDoc.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ interface DocumentResource {
2020

2121
interface UseMeetingDocReturn {
2222
getMeetingDoc: (meetingId: string) => DocumentResource;
23-
getCurrentMeetingDoc: () => DocumentResource | null;
23+
getCurrentMeetingDoc: () => MeetingDocument | null;
2424
clearMeetingDoc: () => void;
2525
meetingTitle: ComputedRef<string>;
2626
meetingOwner: ComputedRef<string>;
@@ -34,7 +34,7 @@ const currentMeetingId: Ref<string | null> = ref(null);
3434

3535
export function useMeetingDoc(): UseMeetingDocReturn {
3636
const getMeetingDoc = (meetingId: string): DocumentResource => {
37-
if (meetingDoc.value && currentMeetingId.value === meetingId) {
37+
if (meetingDoc.value) {
3838
return meetingDoc.value;
3939
}
4040

@@ -50,8 +50,8 @@ export function useMeetingDoc(): UseMeetingDocReturn {
5050
return docResource;
5151
};
5252

53-
const getCurrentMeetingDoc = (): DocumentResource | null => {
54-
return meetingDoc.value;
53+
const getCurrentMeetingDoc = (): MeetingDocument | null => {
54+
return meetingDoc.value?.doc ?? null;
5555
};
5656

5757
const clearMeetingDoc = (): void => {
@@ -60,7 +60,7 @@ export function useMeetingDoc(): UseMeetingDocReturn {
6060
};
6161

6262
const meetingTitle = computed((): string => {
63-
const doc = meetingDoc.value?.doc;
63+
const doc = getCurrentMeetingDoc();
6464
return doc?.title || doc?.name || currentMeetingId.value || "";
6565
});
6666

frontend/src/pages/Meeting.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ provide("socket", socket);
262262
provide(
263263
"meetingTitle",
264264
computed(() => {
265-
if (isGuestSession.value) {
265+
if (!session.isLoggedIn) {
266266
return meetingId.value;
267267
}
268268
return meetingTitle.value;

0 commit comments

Comments
 (0)