From 5508f5b38801bb72cf2e142ecbb25825e60686c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Tue, 26 Dec 2017 21:27:13 +0000 Subject: [PATCH] plugins/messaging: Receipt doesn't exist anymore --- src/plugins/messaging.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/messaging.rs b/src/plugins/messaging.rs index 9b0d1d4..8ac5517 100644 --- a/src/plugins/messaging.rs +++ b/src/plugins/messaging.rs @@ -9,7 +9,7 @@ use jid::Jid; use plugins::stanza::Message; use xmpp_parsers::message::{MessagePayload, MessageType}; use xmpp_parsers::chatstates::ChatState; -use xmpp_parsers::receipts::Receipt; +use xmpp_parsers::receipts::{Request, Received}; use xmpp_parsers::stanza_id::StanzaId; // TODO: use the id (maybe even stanza-id) to identify every message. @@ -98,11 +98,11 @@ impl MessagingPlugin { chat_state: chat_state, }), // XEP-0184 - MessagePayload::Receipt(Receipt::Request) => self.proxy.dispatch(ReceiptRequestEvent { + MessagePayload::ReceiptRequest(Request) => self.proxy.dispatch(ReceiptRequestEvent { from: from.clone(), }), // XEP-0184 - MessagePayload::Receipt(Receipt::Received(id)) => self.proxy.dispatch(ReceiptReceivedEvent { + MessagePayload::ReceiptReceived(Received {id}) => self.proxy.dispatch(ReceiptReceivedEvent { from: from.clone(), id: id.unwrap(), }),