fix TB when we get a chatstate message of a not in the roster contact
This commit is contained in:
parent
2b1d4c93b5
commit
68536513fd
|
@ -430,7 +430,7 @@ class Interface:
|
|||
contact.chatstate = False
|
||||
else:
|
||||
# Brand new message, incoming.
|
||||
if chatstate == 'active':
|
||||
if contact and chatstate == 'active':
|
||||
contact.chatstate = chatstate
|
||||
|
||||
if not array[1]: #empty message text
|
||||
|
|
Loading…
Reference in New Issue