From a47bb9f03c224cb8ea038ba58c75f9f06685a7d8 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 17 Aug 2017 21:40:00 +0200 Subject: [PATCH] fix error when someone changes nick ina room --- gajim/groupchat_control.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gajim/groupchat_control.py b/gajim/groupchat_control.py index a321d0def..e0c652f0f 100644 --- a/gajim/groupchat_control.py +++ b/gajim/groupchat_control.py @@ -1722,10 +1722,10 @@ class GroupchatControl(ChatControlBase): s = _('%(nick)s is now known as %(new_nick)s') % { 'nick': nick, 'new_nick': obj.new_nick} tv = self.conv_textview - if obj.nick in tv.last_received_message_marks: - tv.last_received_message_marks[obj.new_nick] = \ - tv.last_received_message_marks[obj.nick] - del tv.last_received_message_marks[obj.nick] + if obj.nick in tv.last_received_message_id: + tv.last_received_message_id[obj.new_nick] = \ + tv.last_received_message_id[obj.nick] + del tv.last_received_message_id[obj.nick] if obj.nick in self.last_received_txt: self.last_received_txt[obj.new_nick] = \ self.last_received_txt[obj.nick]