Улучшение протокола, чистка кода
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { chacha20Decrypt, decodeWithPassword, decrypt, generateMd5 } from '@/app/workers/crypto/crypto';
|
||||
import { useDatabase } from '@/app/providers/DatabaseProvider/useDatabase';
|
||||
import { createContext, useEffect, useRef, useState } from 'react';
|
||||
import { Attachment, AttachmentEncoding, AttachmentTransport, AttachmentType, PacketMessage } from '@/app/providers/ProtocolProvider/protocol/packets/packet.message';
|
||||
import { Attachment, AttachmentTransport, AttachmentType, PacketMessage } from '@/app/providers/ProtocolProvider/protocol/packets/packet.message';
|
||||
import { usePrivatePlain } from '../AccountProvider/usePrivatePlain';
|
||||
import { usePublicKey } from '../AccountProvider/usePublicKey';
|
||||
import { PacketRead } from '@/app/providers/ProtocolProvider/protocol/packets/packet.read';
|
||||
@@ -47,7 +47,6 @@ export interface AttachmentMeta {
|
||||
type: AttachmentType;
|
||||
preview: string;
|
||||
transport: AttachmentTransport;
|
||||
encoding: AttachmentEncoding;
|
||||
}
|
||||
|
||||
export interface Message {
|
||||
@@ -969,8 +968,7 @@ export function DialogProvider(props: DialogProviderProps) {
|
||||
blob: blob,
|
||||
type: meta.type,
|
||||
preview: meta.preview,
|
||||
transport: meta.transport,
|
||||
encoding: meta.encoding
|
||||
transport: meta.transport
|
||||
});
|
||||
}
|
||||
return attachments;
|
||||
|
||||
Reference in New Issue
Block a user