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
|
contact.chatstate = False
|
||||||
else:
|
else:
|
||||||
# Brand new message, incoming.
|
# Brand new message, incoming.
|
||||||
if chatstate == 'active':
|
if contact and chatstate == 'active':
|
||||||
contact.chatstate = chatstate
|
contact.chatstate = chatstate
|
||||||
|
|
||||||
if not array[1]: #empty message text
|
if not array[1]: #empty message text
|
||||||
|
|
Loading…
Reference in New Issue