From e9b472eb0b7e4f832d9df96b674dc8da73b34b94 Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Sun, 17 Aug 2025 09:15:53 +0100 Subject: feat: new db schema --- filamento/src/logic/offline.rs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'filamento/src/logic/offline.rs') diff --git a/filamento/src/logic/offline.rs b/filamento/src/logic/offline.rs index aa84f3d..3b0d1c9 100644 --- a/filamento/src/logic/offline.rs +++ b/filamento/src/logic/offline.rs @@ -163,21 +163,14 @@ pub async fn handle_offline_result( delivery: Some(Delivery::Failed), timestamp, body, + source: Vec::new(), }; // try to store in message history that there is a new message that is sending. if client is quit mid-send then can mark as failed and re-send // TODO: mark these as potentially failed upon client launch if let Err(e) = logic .db() // TODO: can create message without a resource.... - .create_message_with_user_resource( - message.clone(), - jid.clone(), - // TODO: when message is queued and sent, the from must also be updated with the correct resource - FullJID { - bare_jid: logic.jid.clone(), - resourcepart: "unsent".to_string(), - }, - ) + .create_message(message.clone(), jid.clone(), logic.jid.clone()) .await { // TODO: should these really be handle_error or just the error macro? -- cgit