Fix room not knowing its own nick initially
This commit is contained in:
parent
72d10f5c43
commit
82a292b5d8
1 changed files with 3 additions and 0 deletions
|
|
@ -420,6 +420,9 @@ class Room:
|
|||
new_nick = data["to"]
|
||||
self._target_nick = new_nick
|
||||
|
||||
if self._session is not None:
|
||||
self._session = self._session.with_nick(new_nick)
|
||||
|
||||
logger.debug(f"Set nick to {new_nick!r}")
|
||||
|
||||
return new_nick
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue