Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
poezio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mathieui
poezio
Commits
c94236b2
Commit
c94236b2
authored
Jan 02, 2021
by
mathieui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix nick changes
Due to change again once slixmpp gets a proper API for this
parent
c9fe8f07
Pipeline
#3540
passed with stages
in 3 minutes and 56 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
poezio/tabs/muctab.py
poezio/tabs/muctab.py
+3
-1
No files found.
poezio/tabs/muctab.py
View file @
c94236b2
...
...
@@ -736,7 +736,9 @@ class MucTab(ChatTab):
self
.
core
.
on_user_rejoined_private_conversation
(
self
.
jid
.
bare
,
from_nick
)
def
on_user_nick_change
(
self
,
presence
:
Presence
,
user
:
User
,
from_nick
:
str
)
->
None
:
new_nick
=
presence
[
'muc'
][
'nick'
]
new_nick
=
presence
.
xml
.
find
(
'{%s}x/{%s}item'
%
(
NS_MUC_USER
,
NS_MUC_USER
)
).
attrib
[
'nick'
]
old_color
=
user
.
color
if
user
.
nick
==
self
.
own_nick
:
self
.
own_nick
=
new_nick
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment