Philipp Hörist pushed to branch master at gajim / gajim
Commits:
f650f51a by Philipp Hörist at 2019-07-23T22:19:31Z
NickCompletion: Simplify nickname change
- - - - -
1 changed file:
- gajim/groupchat_control.py
Changes:
=====================================
gajim/groupchat_control.py
=====================================
@@ -1640,10 +1640,6 @@ class GroupchatControl(ChatControlBase):
for role in (Role.VISITOR, Role.PARTICIPANT, Role.MODERATOR):
self.draw_role(role)
- def _change_nick(self, new_nick: str) -> None:
- self.nick = new_nick
- self._nick_completion.change_nick(new_nick)
-
@event_filter(['account', 'room_jid'])
def _on_self_presence(self, event):
nick = event.properties.muc_nickname
@@ -1680,7 +1676,7 @@ class GroupchatControl(ChatControlBase):
nick = event.properties.muc_nickname
new_nick = event.properties.muc_user.nick
if event.properties.is_muc_self_presence:
- self._change_nick(new_nick)
+ self._nick_completion.change_nick(new_nick)
message = _('You are now known as %s') % new_nick
else:
message = _('{nick} is now known '
View it on GitLab:
https://dev.gajim.org/gajim/gajim/commit/f650f51aa6ab71b778209897f1c2007bde821f73
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/commit/f650f51aa6ab71b778209897f1c2007bde821f73
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits