From 7d581afcaf86c1fec09c6166f021f2ffb5192794 Mon Sep 17 00:00:00 2001 From: dvdrw Date: Tue, 14 Feb 2023 00:23:07 +0100 Subject: [PATCH] feat: implement whisper, (double)click on avatar Users can insert a mention by clicking, and initiate a whisper by double-clicking on the avatar on a user's chat message --- src/lib/ChatMessage.svelte | 12 ++++++++++-- src/lib/ChatMessages.svelte | 8 +++++++- src/lib/Input.svelte | 15 ++++++++++++--- src/lib/MessageView.svelte | 5 ++++- src/lib/chat.ts | 4 ++++ src/lib/styles/utils.scss | 17 +++++++++++++++-- 6 files changed, 52 insertions(+), 9 deletions(-) diff --git a/src/lib/ChatMessage.svelte b/src/lib/ChatMessage.svelte index e257ec9..2de7289 100644 --- a/src/lib/ChatMessage.svelte +++ b/src/lib/ChatMessage.svelte @@ -1,6 +1,10 @@