Implement file sending

This commit is contained in:
2025-09-24 14:14:59 +03:00
Unverified
parent 230b8d7e56
commit 6066ec9767
13 changed files with 472 additions and 95 deletions
+9
View File
@@ -60,6 +60,7 @@ export interface Message {
timestamp: string;
profile_picture?: string;
reply_to?: Message;
files?: Attachment[];
}
/**
@@ -230,6 +231,14 @@ export interface WebSocketCredentials {
credentials: string;
}
export interface Attachment {
path: string;
encrypted: boolean;
filename?: string;
content_type?: string;
size?: number;
}
// -----------
// React types
// -----------