1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

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
This commit is contained in:
MarcoPolo-PasTonMolo 2022-05-26 21:57:42 +03:00
parent fe0b7dac53
commit 63f694d6a7

View File

@ -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);