Fix a tb when receiving the first private message of a conversation

This commit is contained in:
Florent Le Coz 2011-02-25 00:38:34 +01:00
parent 001a20c91a
commit 8be400792a

View file

@ -625,7 +625,7 @@ class Core(object):
colorized=False, colorized=False,
forced_user=self.get_room_by_name(room_from).get_user_by_name(nick_from)) forced_user=self.get_room_by_name(room_from).get_user_by_name(nick_from))
conversation = self.get_tab_by_name(jid.full, tabs.PrivateTab) conversation = self.get_tab_by_name(jid.full, tabs.PrivateTab)
if conversation.remote_wants_chatstates is None: if conversation and conversation.remote_wants_chatstates is None:
if message['chat_state']: if message['chat_state']:
conversation.remote_wants_chatstates = True conversation.remote_wants_chatstates = True
else: else: