diff options
author | 2025-04-11 06:20:52 +0100 | |
---|---|---|
committer | 2025-04-11 06:20:52 +0100 | |
commit | 113d9d9ce54528f1f0a782e867683074aaa43ee4 (patch) | |
tree | 7890105a80b938978dee02adb1d8b89ad5041f65 /filamento/src | |
parent | 76b148011e5c974ab20466d873f11c2c460c9351 (diff) | |
download | luz-113d9d9ce54528f1f0a782e867683074aaa43ee4.tar.gz luz-113d9d9ce54528f1f0a782e867683074aaa43ee4.tar.bz2 luz-113d9d9ce54528f1f0a782e867683074aaa43ee4.zip |
feat(filamento): include chat jid with `MessageDelivery` `UpdateMessage`
Diffstat (limited to '')
-rw-r--r-- | filamento/src/lib.rs | 1 | ||||
-rw-r--r-- | filamento/src/logic/online.rs | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/filamento/src/lib.rs b/filamento/src/lib.rs index 2764ef1..83d4991 100644 --- a/filamento/src/lib.rs +++ b/filamento/src/lib.rs @@ -171,6 +171,7 @@ pub enum UpdateMessage { }, MessageDelivery { id: Uuid, + chat: JID, delivery: Delivery, }, SubscriptionRequest(jid::JID), diff --git a/filamento/src/logic/online.rs b/filamento/src/logic/online.rs index 9e90676..1023b79 100644 --- a/filamento/src/logic/online.rs +++ b/filamento/src/logic/online.rs @@ -539,6 +539,7 @@ pub async fn handle_send_message<Fs: FileStore + Clone>(logic: &ClientLogic<Fs>, .send(UpdateMessage::MessageDelivery { id, delivery: Delivery::Written, + chat: jid.clone(), }) .await; if mark_chat_as_chatted { @@ -556,6 +557,7 @@ pub async fn handle_send_message<Fs: FileStore + Clone>(logic: &ClientLogic<Fs>, .send(UpdateMessage::MessageDelivery { id, delivery: Delivery::Failed, + chat: jid, }) .await; logic.handle_error(MessageSendError::Write(e).into()).await; |