diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index c091673d25..28027b2a17 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -409,6 +409,7 @@ // Non-owners may reply when the sharing mode allows it, but cannot save chat edits. $: isShared = chat != null && chat.user_id !== $user?.id; + $: if (isShared && $showCallOverlay) showCallOverlay.set(false); $: canClone = isShared && ($user?.role === 'admin' || ($user?.permissions?.chat?.import ?? true)); let cloning = false; @@ -2472,6 +2473,8 @@ ////////////////////////// const openCallOverlay = () => { + if (isShared) return; + if (!($user?.role === 'admin' || ($user?.permissions?.chat?.call ?? true))) { return; } @@ -5062,6 +5065,7 @@ {typingUsers} on:typing={(event) => emitTyping(event.detail)} callActive={!!(bridge?.connected || bridge?.connecting)} + callEnabled={!isShared} bind:this={messageInput} {history} {taskIds} @@ -5157,6 +5161,7 @@ {typingUsers} on:typing={(event) => emitTyping(event.detail)} callActive={!!(bridge?.connected || bridge?.connecting)} + callEnabled={!isShared} bind:this={messageInput} {history} {taskIds} @@ -5219,6 +5224,7 @@