diff --git a/src/lib/components/calling/IncomingCall.svelte b/src/lib/components/calling/IncomingCall.svelte index 8295b6cc9..7aefa5a50 100644 --- a/src/lib/components/calling/IncomingCall.svelte +++ b/src/lib/components/calling/IncomingCall.svelte @@ -78,26 +78,26 @@ {#if pending && (VoiceRTCInstance.incomingCallFrom === null || (VoiceRTCInstance.incomingCallFrom && $callInProgress !== VoiceRTCInstance.incomingCallFrom[1]?.metadata.channel))} -
+
{#if cancelledCall} - {$user.name} - {$_("settings.calling.hasCancelled")} - {$_("settings.calling.disconnecting")} + {$user.name} + {$_("settings.calling.hasCancelled")} + {$_("settings.calling.disconnecting")} {:else} {#if $callChat.kind === ChatType.DirectMessage} - {$user.name} + {$user.name} {#if $user.profile.status_message !== ""} - {$user.profile.status_message} + {$user.profile.status_message} {/if} {:else}
- + {@html $_("settings.calling.userInviteToAGroupCall", { values: { user: `${$user.name}`, @@ -110,14 +110,14 @@ {/if} - - - {/if} diff --git a/src/lib/components/messaging/ChatPreview.svelte b/src/lib/components/messaging/ChatPreview.svelte index 1c113da9f..539ba774b 100644 --- a/src/lib/components/messaging/ChatPreview.svelte +++ b/src/lib/components/messaging/ChatPreview.svelte @@ -27,10 +27,10 @@ $: users = Store.getUsers(chat.users) $: lookupUsers = Store.getUsersLookup(chat.users) - $: chatName = chat.kind === ChatType.Group ? chat.name : $users[1]?.name ?? $users[0].name + $: chatName = chat.kind === ChatType.Group ? chat.name : ($users[1]?.name ?? $users[0].name) $: loading = chatName === "Unknown User" || ($users.length <= 2 && ($users[1]?.loading == true || $users[0].loading == true)) $: directChatPhoto = $users[1]?.profile.photo.image ?? $users[0].profile.photo.image - $: chatStatus = $users.length > 2 ? Status.Offline : $users[1]?.profile.status ?? $users[0].profile.status + $: chatStatus = $users.length > 2 ? Status.Offline : ($users[1]?.profile.status ?? $users[0].profile.status) $: simpleUnreads = derived(SettingsStore.state, s => s.messaging.simpleUnreads) $: user = chat.typing_indicator.users().map(u => { return $lookupUsers[u] @@ -149,7 +149,7 @@ {chat.notifications} {:else if chat.notifications > 0 && $simpleUnreads} - + {/if} {/if}
diff --git a/src/lib/components/messaging/Conversation.svelte b/src/lib/components/messaging/Conversation.svelte index ac8b32130..ca94afd74 100644 --- a/src/lib/components/messaging/Conversation.svelte +++ b/src/lib/components/messaging/Conversation.svelte @@ -111,8 +111,8 @@
{:else} {#if unreads && unreads.unread > 0} -