add logic for sending and receiving items

This commit is contained in:
marlon-erler
2024-07-11 00:47:58 +02:00
parent 7f2955d8e4
commit b7dbe6b13d
6 changed files with 180 additions and 49 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.sendNewMessage}
on:enter={chat.sendMessageFromComposer}
></input>
<button
class="primary"
on:click={chat.sendNewMessage}
on:click={chat.sendMessageFromComposer}
toggle:disabled={chat.cannotSendMessage}
>
<span class="icon">send</span>