Philipp Hörist pushed to branch mainwindow at gajim / gajim
Commits:
717a6b52 by lovetox at 2021-05-19T23:50:12+02:00
Fix choosing a different nick on second join
- - - - -
1 changed file:
- gajim/common/modules/muc.py
Changes:
=====================================
gajim/common/modules/muc.py
=====================================
@@ -210,6 +210,12 @@ def join(self, jid, nick=None, password=None, config=None):
self._mucs[jid] = muc_data
self._push_muc_added_event(jid)
+ elif nick is not None:
+ # Currently MUCData is never discarded so if it exists it contains
+ # the nickname of a previous join. The user may chose now on a new
+ # join a different nickname, so update MUCData here.
+ muc_data.nick = nick
+
if not muc_data.state.is_not_joined:
self._log.warning('Can’t join MUC %s, state: %s',
jid, muc_data.state)
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/717a6b52dd10ce53dabff6c73b12e2cc6ef6642d
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/717a6b52dd10ce53dabff6c73b12e2cc6ef6642d
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