Do not traceback when we receive a message from a JID with no resource
This commit is contained in:
parent
2275b61a4d
commit
fccf7f5af7
1 changed files with 1 additions and 1 deletions
|
@ -212,7 +212,7 @@ def on_normal_message(self, message):
|
|||
return
|
||||
|
||||
conversation = self.get_conversation_by_jid(conv_jid, create=True)
|
||||
if isinstance(conversation, tabs.DynamicConversationTab):
|
||||
if isinstance(conversation, tabs.DynamicConversationTab) and conv_jid.resource:
|
||||
conversation.lock(conv_jid.resource)
|
||||
|
||||
if not own and not conversation.nick:
|
||||
|
|
Loading…
Reference in a new issue