summarylogtreecommitdiffstats
path: root/0003-Catch-presence-error-when-joining-MUC.patch
diff options
context:
space:
mode:
Diffstat (limited to '0003-Catch-presence-error-when-joining-MUC.patch')
-rw-r--r--0003-Catch-presence-error-when-joining-MUC.patch37
1 files changed, 0 insertions, 37 deletions
diff --git a/0003-Catch-presence-error-when-joining-MUC.patch b/0003-Catch-presence-error-when-joining-MUC.patch
deleted file mode 100644
index ec1b05f19b25..000000000000
--- a/0003-Catch-presence-error-when-joining-MUC.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From a18f290da33301433db6cea8a0b7eddce42d4e4a Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= <pep@bouah.net>
-Date: Thu, 5 Sep 2019 23:57:05 +0200
-Subject: [PATCH 3/6] Catch presence error when joining MUC
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
----
- src/xmpp.rs | 10 ++++++++--
- 1 file changed, 8 insertions(+), 2 deletions(-)
-
-diff --git a/src/xmpp.rs b/src/xmpp.rs
-index 0eafdce..3952e64 100644
---- a/src/xmpp.rs
-+++ b/src/xmpp.rs
-@@ -33,8 +33,14 @@ impl Agent {
- .unwrap();
- }
- Event::Stanza(el) => {
-- if el.name() == "presence" && el.attr("from") == Some(&muc_jid_str) {
-- info!("Entered MUC {}", muc_jid);
-+ if el.is("presence", "jabber:client") {
-+ if el.attr("from") == Some(&muc_jid_str) {
-+ if el.attr("type") == PresenceType::Error {
-+ info!("Failed to enter MUC {:?}", muc_jid);
-+ } else {
-+ info!("Entered MUC {:?}", muc_jid);
-+ }
-+ }
- }
- }
- _ => {}
---
-2.23.0
-