diff options
author | 2025-08-17 09:15:53 +0100 | |
---|---|---|
committer | 2025-08-17 09:15:53 +0100 | |
commit | e9b472eb0b7e4f832d9df96b674dc8da73b34b94 (patch) | |
tree | cb933de9bbf7e0ce0aa090ead2b9d7ad57a20e0e /filamento/src/logic/offline.rs | |
parent | 561dc2d6b6bc729ddd936ff7fe175c91b175e8b2 (diff) | |
download | luz-e9b472eb0b7e4f832d9df96b674dc8da73b34b94.tar.gz luz-e9b472eb0b7e4f832d9df96b674dc8da73b34b94.tar.bz2 luz-e9b472eb0b7e4f832d9df96b674dc8da73b34b94.zip |
feat: new db schema
Diffstat (limited to 'filamento/src/logic/offline.rs')
-rw-r--r-- | filamento/src/logic/offline.rs | 11 |
1 files changed, 2 insertions, 9 deletions
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<Fs: FileStore + Clone>( 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? |