cleanup, add button to resend messages

This commit is contained in:
marlon-erler
2024-07-10 15:08:06 +02:00
parent 62ce36e017
commit dd8e86688b
6 changed files with 76 additions and 28 deletions
+2 -2
View File
@@ -12,11 +12,11 @@ export function MessageComposer(chat: Chat) {
style="max-width: unset"
placeholder={translation.composerPlaceholder}
bind:value={chat.composingMessage}
on:enter={chat.sendMessage}
on:enter={chat.sendNewMessage}
></input>
<button
class="primary"
on:click={chat.sendMessage}
on:click={chat.sendNewMessage}
toggle:disabled={chat.cannotSendMessage}
>
<span class="icon">send</span>