feat(web): add telegram-like message status indicators
All checks were successful
CI / test (push) Successful in 21s

- optimistic sending state with pending clock icon

- transition statuses sent -> delivered -> read via realtime events

- render checkmarks next to outgoing message timestamps
This commit is contained in:
2026-03-08 00:01:22 +03:00
parent f6ad480973
commit 16a584c6cb
5 changed files with 163 additions and 16 deletions

View File

@@ -1,5 +1,6 @@
export type ChatType = "private" | "group" | "channel";
export type MessageType = "text" | "image" | "video" | "audio" | "voice" | "file" | "circle_video";
export type DeliveryStatus = "sending" | "sent" | "delivered" | "read";
export interface Chat {
id: number;
@@ -16,6 +17,9 @@ export interface Message {
text: string | null;
created_at: string;
updated_at: string;
client_message_id?: string;
delivery_status?: DeliveryStatus;
is_pending?: boolean;
}
export interface AuthUser {