Fix unable to unblock XMPP buddy

Review Request #1479 — Created May 27, 2022 and submitted — Latest diff uploaded

Information

pidgin/pidgin
release-2.x.y

Reviewers

If the user blocked an XMPP buddy that was not in the buddy list,
Pidgin sent the XID with the resource to the server's block list.

If the user tried to unblock that buddy after adding them to the
buddy list, Pidgin sent the XID without the resource to the server
for unblocking.

This resulted in users unable to unblock their buddies.

This patch fixes this situation by sending just the normalized XID
(i.e. without the resource) to the server for blocking and
unblocking.

Tested on a Prosody XMPP server by adding a buddy and unblocking them.

Diff Revision 1 (Latest)

Commits

First Last Summary ID Author
Fix unable to unblock XMPP buddy
If the user blocked an XMPP buddy that was not in the buddy list, Pidgin sent the XID with the resource to the server's block list. If the user tried to unblock that buddy after adding them to the buddy list, Pidgin sent the XID without the resource to the server for unblocking. This resulted in users unable to unblock their buddies. This patch fixes this situation by sending just the normalized XID (i.e. without the resource) to the server for blocking and unblocking.
94f49057a77a2fe34ad0790d24b3025278565a45 Belgin Știrbu
libpurple/protocols/jabber/jabber.c
Loading...