diff options
author | Eijebong <eijebong@bananium.fr> | 2016-08-18 21:04:41 +0200 |
---|---|---|
committer | Eijebong <eijebong@bananium.fr> | 2016-08-18 21:21:08 +0200 |
commit | c94df86b2cb0230cda2281f1d955b8796b2b29bb (patch) | |
tree | e4dd894bbccb5a6a9322184147b50867125f1579 | |
parent | ec077496ba51e0c3a3ed2536831dbc277607ec53 (diff) | |
download | poezio-c94df86b2cb0230cda2281f1d955b8796b2b29bb.tar.gz poezio-c94df86b2cb0230cda2281f1d955b8796b2b29bb.tar.bz2 poezio-c94df86b2cb0230cda2281f1d955b8796b2b29bb.tar.xz poezio-c94df86b2cb0230cda2281f1d955b8796b2b29bb.zip |
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.
-rw-r--r-- | poezio/core/handlers.py | 4 |
1 files 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']: |