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)
|
||||
|
||||
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,
|
||||
|
|
Loading…
Reference in a new issue