Новая система вложений

This commit is contained in:
RoyceDa
2026-03-26 22:29:03 +02:00
parent fd3fac54f6
commit 8d6090e632
12 changed files with 192 additions and 145 deletions

View File

@@ -89,7 +89,10 @@ export function DialogInput() {
blob: fileContent,
id: generateRandomKey(8),
type: AttachmentType.FILE,
preview: files[0].size + "::" + files[0].name
preview: files[0].size + "::" + files[0].name,
transport_server: "",
transport_tag: "",
encoded_for: dialog
}]);
}
});
@@ -116,7 +119,10 @@ export function DialogInput() {
type: AttachmentType.MESSAGES,
id: generateRandomKey(8),
blob: JSON.stringify([...replyMessages.messages]),
preview: ""
preview: "",
transport_server: "",
transport_tag: "",
encoded_for: dialog
}]);
if(editableDivRef.current){
editableDivRef.current.focus();
@@ -230,7 +236,10 @@ export function DialogInput() {
blob: avatars[0].avatar,
id: generateRandomKey(8),
type: AttachmentType.AVATAR,
preview: ""
preview: "",
transport_server: "",
transport_tag: "",
encoded_for: dialog
}]);
if(editableDivRef.current){
editableDivRef.current.focus();
@@ -270,7 +279,10 @@ export function DialogInput() {
blob: base64Image,
id: attachmentId,
type: AttachmentType.IMAGE,
preview: ""
preview: "",
transport_server: "",
transport_tag: "",
encoded_for: dialog
}]);
}
if(editableDivRef.current){
@@ -304,7 +316,10 @@ export function DialogInput() {
blob: fileContent,
id: attachmentId,
type: AttachmentType.FILE,
preview: files[0].size + "::" + files[0].name
preview: files[0].size + "::" + files[0].name,
transport_server: "",
transport_tag: "",
encoded_for: dialog
}]);
}