fix TB when getting chatstate from contact not in roster of offline storaged chatstate

This commit is contained in:
Yann Leboulanger 2006-04-04 17:51:52 +00:00
parent 5957e968d7
commit 7b102e4813
1 changed files with 15 additions and 15 deletions

View File

@ -528,7 +528,7 @@ class Interface:
elif contact.chatstate != 'active':
# got no valid jep85 answer, peer does not support it
contact.chatstate = False
elif contact and chatstate == 'active':
elif chatstate == 'active':
# Brand new message, incoming.
contact.our_chatstate = chatstate
contact.chatstate = chatstate