fix: Join Dyte meeting URL in dashboard (#10932)

The join meeting feature was broken in the dashboard because the message
ID was missing in the meeting link. This PR fixes these issues.
This commit is contained in:
Muhsin Keloth
2025-02-19 16:03:37 +05:30
committed by GitHub
parent 031199f15a
commit 7590faaa63

View File

@@ -9,7 +9,7 @@ import { useI18n } from 'vue-i18n';
import { useMessageContext } from '../provider.js'; import { useMessageContext } from '../provider.js';
import BaseAttachmentBubble from './BaseAttachment.vue'; import BaseAttachmentBubble from './BaseAttachment.vue';
const { content, sender, contentAttributes } = useMessageContext(); const { content, sender, contentAttributes, id } = useMessageContext();
const { t } = useI18n(); const { t } = useI18n();
@@ -28,7 +28,7 @@ const joinTheCall = async () => {
isLoading.value = true; isLoading.value = true;
try { try {
const { data: { authResponse: { authToken } = {} } = {} } = const { data: { authResponse: { authToken } = {} } = {} } =
await DyteAPI.addParticipantToMeeting(meetingData.value.messageId); await DyteAPI.addParticipantToMeeting(id.value);
dyteAuthToken.value = authToken; dyteAuthToken.value = authToken;
} catch (err) { } catch (err) {
useAlert(t('INTEGRATION_SETTINGS.DYTE.JOIN_ERROR')); useAlert(t('INTEGRATION_SETTINGS.DYTE.JOIN_ERROR'));
@@ -53,7 +53,7 @@ const action = computed(() => ({
sender-translation-key="CONVERSATION.SHARED_ATTACHMENT.MEETING" sender-translation-key="CONVERSATION.SHARED_ATTACHMENT.MEETING"
:action="action" :action="action"
> >
<div v-if="!sender" class="text-n-slate-12 text-sm truncate"> <div v-if="!sender" class="text-sm truncate text-n-slate-12">
<!-- Added as a fallback, where the sender is not available (Deleted) --> <!-- Added as a fallback, where the sender is not available (Deleted) -->
<!-- Will show the content, if senderName in BaseAttachment.vue is empty --> <!-- Will show the content, if senderName in BaseAttachment.vue is empty -->
{{ content }} {{ content }}
@@ -64,7 +64,7 @@ const action = computed(() => ({
allow="camera;microphone;fullscreen;display-capture;picture-in-picture;clipboard-write;" allow="camera;microphone;fullscreen;display-capture;picture-in-picture;clipboard-write;"
/> />
<button <button
class="bg-n-solid-3 px-4 py-2 rounded-lg text-sm" class="px-4 py-2 text-sm rounded-lg bg-n-solid-3"
@click="leaveTheRoom" @click="leaveTheRoom"
> >
{{ $t('INTEGRATION_SETTINGS.DYTE.LEAVE_THE_ROOM') }} {{ $t('INTEGRATION_SETTINGS.DYTE.LEAVE_THE_ROOM') }}