Fix a tb when receiving the first private message of a conversation
This commit is contained in:
parent
001a20c91a
commit
8be400792a
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue