Fix a traceback when a receiving a message from a bare JID
This commit is contained in:
parent
271fd662a1
commit
30194a8a91
1 changed files with 1 additions and 1 deletions
|
@ -221,7 +221,7 @@ def on_normal_message(self, message):
|
||||||
return
|
return
|
||||||
|
|
||||||
conversation = self.get_conversation_by_jid(conv_jid, create=True)
|
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)
|
conversation.lock(conv_jid.resource)
|
||||||
|
|
||||||
if not own and not conversation.nick:
|
if not own and not conversation.nick:
|
||||||
|
|
Loading…
Reference in a new issue