Fix unable to unblock XMPP buddy
Review Request #1479 — Created May 27, 2022 and submitted
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.