@@ -22,12 +22,9 @@ use ::image::{ImageBuffer, Rgba};
2222#[ cfg( not( target_os = "android" ) ) ]
2323use tauri_plugin_clipboard_manager:: ClipboardExt ;
2424
25- use crate :: crypto;
26- use crate :: db;
2725use crate :: mls:: MlsService ;
2826use crate :: util:: { bytes_to_hex_string, hex_string_to_bytes} ;
2927use crate :: util:: calculate_file_hash;
30- use crate :: net;
3128use crate :: STATE ;
3229use crate :: util;
3330use crate :: TAURI_APP ;
@@ -36,7 +33,7 @@ use crate::miniapps::realtime::{generate_topic_id, encode_topic_id};
3633
3734use super :: types:: { AttachmentFile , ImageMetadata , Message , Attachment } ;
3835
39- use vector_core:: sending:: { SendCallback , SendConfig , NoOpSendCallback } ;
36+ use vector_core:: sending:: { SendCallback , SendConfig } ;
4037
4138/// Result of sending a message, returned to frontend for state update
4239#[ derive( serde:: Serialize ) ]
@@ -528,9 +525,6 @@ pub async fn message(receiver: String, content: String, replied_to: String, file
528525 // Calculate the file hash first (before encryption)
529526 let file_hash = calculate_file_hash ( & * attached_file. bytes ) ;
530527
531- // The SHA-256 hash of an empty file - we should never reuse this
532- const EMPTY_FILE_HASH : & str = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" ;
533-
534528 // ============================================================
535529 // MLS GROUP ATTACHMENTS: Use MIP-04 encryption with imeta tags
536530 // ============================================================
0 commit comments