fix TB when we get a chatstate message of a not in the roster contact

This commit is contained in:
Yann Leboulanger 2005-10-07 10:21:15 +00:00
parent 2b1d4c93b5
commit 68536513fd
1 changed files with 1 additions and 1 deletions

View File

@ -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