MUC-PM: bare-JID messages can't be PMs
This commit is contained in:
parent
efc9489f33
commit
0319ce5079
1 changed files with 3 additions and 2 deletions
|
@ -137,8 +137,9 @@ class HandlerCore:
|
||||||
self.on_normal_message(sent)
|
self.on_normal_message(sent)
|
||||||
|
|
||||||
sent = message['carbon_sent']
|
sent = message['carbon_sent']
|
||||||
if (sent['to'].bare not in roster
|
# todo: implement proper MUC detection logic
|
||||||
or roster[sent['to'].bare].subscription == 'none'):
|
if (sent['to'].resource and (sent['to'].bare not in roster
|
||||||
|
or roster[sent['to'].bare].subscription == 'none')):
|
||||||
fixes.has_identity(
|
fixes.has_identity(
|
||||||
self.core.xmpp,
|
self.core.xmpp,
|
||||||
sent['to'].server,
|
sent['to'].server,
|
||||||
|
|
Loading…
Reference in a new issue