pidgin/pidgin

disco: Move chat name to Description column

15 months ago, Elliott Sales de Andrade
b8c81e2dab8f
Parents 9fa17efc24ca
Children 083eae91c9a8
disco: Move chat name to Description column

I find it weird that the name of chats ends up in the Name column, so that you don't get the JID.

So move it to the Description, and put the JID back in the Name column.

Testing Done:
Browsed to `pidgin.im`, and expanded `conference.pidgin.im`.

Reviewed at https://reviews.imfreedom.org/r/2275/
--- a/pidgin/plugins/disco/xmppdisco.c Thu Feb 23 22:45:08 2023 -0600
+++ b/pidgin/plugins/disco/xmppdisco.c Thu Feb 23 23:03:17 2023 -0600
@@ -420,11 +420,8 @@
xmpp_disco_service_set_service_type(service,
XMPP_DISCO_SERVICE_TYPE_CHAT);
- if(name != NULL) {
- xmpp_disco_service_set_name(service, name);
- } else {
- xmpp_disco_service_set_name(service, jid);
- }
+ xmpp_disco_service_set_name(service, jid);
+ xmpp_disco_service_set_description(service, name);
xmpp_disco_service_set_jid(service, jid);
xmpp_disco_service_set_node(service, node);
pidgin_disco_add_service(list, service, item_data->parent);