From c94df86b2cb0230cda2281f1d955b8796b2b29bb Mon Sep 17 00:00:00 2001 From: Eijebong Date: Thu, 18 Aug 2016 21:04:41 +0200 Subject: [PATCH] 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. --- poezio/core/handlers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/poezio/core/handlers.py b/poezio/core/handlers.py index 40070281..98674fdd 100644 --- a/poezio/core/handlers.py +++ b/poezio/core/handlers.py @@ -270,8 +270,8 @@ class HandlerCore: if not own and not conversation.nick: conversation.nick = remote_nick - elif not own: # keep a fixed nick during the whole conversation - remote_nick = conversation.nick + elif not own: + remote_nick = conversation.get_nick() self.core.events.trigger('conversation_msg', message, conversation) if not message['body']: