From 11c832a2bf898510fa95d711aafb1c795b014a23 Mon Sep 17 00:00:00 2001 From: "Schimon Jehudah, Adv." Date: Wed, 16 Oct 2024 01:03:51 +0300 Subject: [PATCH] Python : Fix group chat subject. --- fasi.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fasi.py b/fasi.py index 79507ff..9a08ec9 100644 --- a/fasi.py +++ b/fasi.py @@ -123,6 +123,7 @@ class HttpInstance: messages = jid_details['messages'] nodes = jid_details['nodes'] note = jid_details['note'] + subject = jid_details['subject'] title = jid_details['name'] xmpp_uri = jid_details['uri'] view_href = jid_details['view_href'] @@ -637,7 +638,7 @@ class FileUtilities: async def cache_jid_data(jabber_id, password, jid_bare, node_name=None, item_id=None, alias=None): - count = iq_disco_items_list = iq_disco_items_items_list = node_title = title = '' + iq_disco_items_list = iq_disco_items_items_list = node_title = title = '' jid_vcard = { 'name' : '', 'note' : '', @@ -683,6 +684,7 @@ class FileUtilities: } # TODO /d/pubsub.nicoco.fr/blog/urn-uuid-53e43061-1962-3112-bb8a-1473dca61719 + count = '' jid_items = await XmppXep0030.get_jid_items(xmpp_instance, jid_bare) if isinstance(jid_items['iq'], stanza.iq.Iq): iq = jid_items['iq'] @@ -748,6 +750,7 @@ class FileUtilities: # Group chat messages print('Group chat messages') messages = [] + subject = '' if jid_kind == 'muc': action = 'Join' # TODO Create configurations for group chat preview @@ -823,6 +826,7 @@ class FileUtilities: 'name' : title, 'nodes' : nodes, 'note' : note or '', + 'subject' : subject or '', 'uri' : xmpp_uri or '', 'view_href' : view_href}