Add reply to long press menu

This commit is contained in:
Jon Staab
2025-01-28 09:47:11 -08:00
parent 1e7e439e3f
commit fb53e53411
4 changed files with 16 additions and 2 deletions
@@ -11,6 +11,7 @@
export let url
export let event
export let reply
const onEmoji = (emoji: NativeEmoji) => {
history.back()
@@ -19,6 +20,11 @@
const showEmojiPicker = () => pushModal(EmojiPicker, {onClick: onEmoji}, {replaceState: true})
const sendReply = () => {
history.back()
reply()
}
const showInfo = () => pushModal(EventInfo, {event}, {replaceState: true})
const showDelete = () => pushModal(ConfirmDelete, {url, event})
@@ -29,6 +35,10 @@
<Icon size={4} icon="smile-circle" />
Send Reaction
</Button>
<Button class="btn btn-neutral w-full" on:click={sendReply}>
<Icon size={4} icon="reply" />
Send Reply
</Button>
<Button class="btn btn-neutral" on:click={showInfo}>
<Icon size={4} icon="code-2" />
Message Details