MUC-PM: bare-JID messages can't be PMs

This commit is contained in:
Georg Lukas 2018-04-03 22:53:29 +02:00 committed by mathieui
parent efc9489f33
commit 0319ce5079
No known key found for this signature in database
GPG key ID: C59F84CEEFD616E3

View file

@ -137,8 +137,9 @@ class HandlerCore:
self.on_normal_message(sent)
sent = message['carbon_sent']
if (sent['to'].bare not in roster
or roster[sent['to'].bare].subscription == 'none'):
# todo: implement proper MUC detection logic
if (sent['to'].resource and (sent['to'].bare not in roster
or roster[sent['to'].bare].subscription == 'none')):
fixes.has_identity(
self.core.xmpp,
sent['to'].server,