Use conversation.get_nick() instead of conversation.nick when adding a
message to a conversation tab. When you rename one of your contact and have a conversation opened, the nickname wasn't updated when you received new messages.
This commit is contained in:
parent
ec077496ba
commit
c94df86b2c
1 changed files with 2 additions and 2 deletions
|
@ -270,8 +270,8 @@ class HandlerCore:
|
||||||
|
|
||||||
if not own and not conversation.nick:
|
if not own and not conversation.nick:
|
||||||
conversation.nick = remote_nick
|
conversation.nick = remote_nick
|
||||||
elif not own: # keep a fixed nick during the whole conversation
|
elif not own:
|
||||||
remote_nick = conversation.nick
|
remote_nick = conversation.get_nick()
|
||||||
|
|
||||||
self.core.events.trigger('conversation_msg', message, conversation)
|
self.core.events.trigger('conversation_msg', message, conversation)
|
||||||
if not message['body']:
|
if not message['body']:
|
||||||
|
|
Loading…
Reference in a new issue