diff options
author | MarcoPolo-PasTonMolo <marcopolopastonmolo@protonmail.com> | 2022-05-26 21:57:42 +0300 |
---|---|---|
committer | MarcoPolo-PasTonMolo <marcopolopastonmolo@protonmail.com> | 2022-05-26 21:57:42 +0300 |
commit | 63f694d6a7951a2d5c2f5f1a65359fae87768d8b (patch) | |
tree | b5178e511eab54df05933222409e7877121d2d73 | |
parent | fe0b7dac53423b6bf3db369c506aa3a9b6e70be3 (diff) | |
download | profani-tty-63f694d6a7951a2d5c2f5f1a65359fae87768d8b.tar.gz |
Respect silent nick change in mucs
Profanity would ignore the silent nick change in some places. The roster and history would show the correct nick, new messages from the current user and the "Autojoined <jid> as <nick>" message would show the wrong one. This commit fixes that problem. Fixes https://github.com/profanity-im/profanity/issues/757
-rw-r--r-- | src/xmpp/presence.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xmpp/presence.c b/src/xmpp/presence.c index b5cb1803..17e30d75 100644 --- a/src/xmpp/presence.c +++ b/src/xmpp/presence.c @@ -752,6 +752,8 @@ _muc_user_self_handler(xmpp_stanza_t* stanza) log_warning("presence: jid without resource"); return; } + + muc_nick_change_complete(room, nick); char* reason = stanza_get_reason(stanza); char* show_str = stanza_get_show(stanza, "online"); char* status_str = stanza_get_status(stanza, NULL); |