From 63f694d6a7951a2d5c2f5f1a65359fae87768d8b Mon Sep 17 00:00:00 2001 From: MarcoPolo-PasTonMolo Date: Thu, 26 May 2022 21:57:42 +0300 Subject: 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 as " message would show the wrong one. This commit fixes that problem. Fixes https://github.com/profanity-im/profanity/issues/757 --- src/xmpp/presence.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- cgit 1.4.1-2-gfad0