(feat): add replys
Some checks failed
/ build-web (push) Successful in 6m31s
/ build-desktop (linux) (push) Failing after 7m9s
/ release (push) Has been cancelled
/ build-mobile (push) Has been cancelled

(feat): move to SenderId
(feat): other chat improvements
This commit is contained in:
Alois 2026-07-06 23:08:55 +02:00
commit e0843a11a6
9 changed files with 6138 additions and 3234 deletions

View file

@ -19,6 +19,7 @@ import {
import { Pin, Clipboard, Pen, Reply, Forward, Trash } from "lucide-react";
import { useMemo, useState } from "react";
import type { ReactElement, ReactNode } from "react";
import { useChat } from "../context";
async function copyText(text: string) {
await navigator.clipboard.writeText(text);
@ -146,6 +147,8 @@ function MessageMenuContent({
const { Content, Group, Item, Separator, Sub, SubContent, SubTrigger } =
components;
const { setReplyTo } = useChat();
return (
<Content>
<Group>
@ -172,7 +175,12 @@ function MessageMenuContent({
<Item disabled className="flex justify-between">
<p>Edit Message</p> <Pen />
</Item>
<Item disabled className="flex justify-between">
<Item
className="flex justify-between"
onClick={() => {
setReplyTo(messageId);
}}
>
<p>Reply</p> <Reply />
</Item>
<Item disabled className="flex justify-between">