Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/python-nbxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hörist <philipp@hoerist.com>2019-01-03 14:48:03 +0300
committerPhilipp Hörist <philipp@hoerist.com>2019-01-03 14:48:03 +0300
commit5cca4c7d49d9dabd9a8f53a593688dbf98e8d99c (patch)
treeda72a65514827fb4d482388dff62dea33bbf2c20 /nbxmpp/modules/muc.py
parent2c8f64557619fcc2d7065fbaedddad4ed700cdb7 (diff)
Better detect MUC PMs
Diffstat (limited to 'nbxmpp/modules/muc.py')
-rw-r--r--nbxmpp/modules/muc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nbxmpp/modules/muc.py b/nbxmpp/modules/muc.py
index 7031a24..e6456d3 100644
--- a/nbxmpp/modules/muc.py
+++ b/nbxmpp/modules/muc.py
@@ -180,7 +180,7 @@ class MUC:
return
# MUC Private message
- if properties.type == MessageType.CHAT:
+ if properties.type == MessageType.CHAT and not muc_user.getChildren():
properties.muc_private_message = True
return