diff --git a/packages/web-chat-x-vue/src/components/PeerVideoComponent.vue b/packages/web-chat-x-vue/src/components/PeerVideoComponent.vue index 0182195..4b188e5 100644 --- a/packages/web-chat-x-vue/src/components/PeerVideoComponent.vue +++ b/packages/web-chat-x-vue/src/components/PeerVideoComponent.vue @@ -104,9 +104,7 @@ peerManager.nearVideoElement = nearVideoElement; peerManager.elDialogVisible = elDialogVisible; onMounted(() => { - elDialogVisible.value = true; nextTick(() => { - elDialogVisible.value = false; peerManager.listenCall(); }); }); diff --git a/packages/web-chat-x-vue/src/views/PrivateChat.vue b/packages/web-chat-x-vue/src/views/PrivateChat.vue index 73acfd6..6f2756f 100644 --- a/packages/web-chat-x-vue/src/views/PrivateChat.vue +++ b/packages/web-chat-x-vue/src/views/PrivateChat.vue @@ -146,7 +146,7 @@ ref(await libp2pManager.getMessageAggregation("",currentUser?.value.id,friendId. ]) watchEffect(async ()=>{ messages.value=await libp2pManager.getMessageAggregation("",currentUser?.value.id,friendId.value) - friend.value=( libp2pManager.getFriend(friendId.value))! + friend.value=(libp2pManager.getFriend(friendId.value))! }) onMounted(()=>{ nextTick(()=>{