Python : Fix group chat subject.
This commit is contained in:
parent
cb6b87544e
commit
11c832a2bf
1 changed files with 5 additions and 1 deletions
6
fasi.py
6
fasi.py
|
@ -123,6 +123,7 @@ class HttpInstance:
|
||||||
messages = jid_details['messages']
|
messages = jid_details['messages']
|
||||||
nodes = jid_details['nodes']
|
nodes = jid_details['nodes']
|
||||||
note = jid_details['note']
|
note = jid_details['note']
|
||||||
|
subject = jid_details['subject']
|
||||||
title = jid_details['name']
|
title = jid_details['name']
|
||||||
xmpp_uri = jid_details['uri']
|
xmpp_uri = jid_details['uri']
|
||||||
view_href = jid_details['view_href']
|
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):
|
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 = {
|
jid_vcard = {
|
||||||
'name' : '',
|
'name' : '',
|
||||||
'note' : '',
|
'note' : '',
|
||||||
|
@ -683,6 +684,7 @@ class FileUtilities:
|
||||||
}
|
}
|
||||||
|
|
||||||
# TODO /d/pubsub.nicoco.fr/blog/urn-uuid-53e43061-1962-3112-bb8a-1473dca61719
|
# 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)
|
jid_items = await XmppXep0030.get_jid_items(xmpp_instance, jid_bare)
|
||||||
if isinstance(jid_items['iq'], stanza.iq.Iq):
|
if isinstance(jid_items['iq'], stanza.iq.Iq):
|
||||||
iq = jid_items['iq']
|
iq = jid_items['iq']
|
||||||
|
@ -748,6 +750,7 @@ class FileUtilities:
|
||||||
# Group chat messages
|
# Group chat messages
|
||||||
print('Group chat messages')
|
print('Group chat messages')
|
||||||
messages = []
|
messages = []
|
||||||
|
subject = ''
|
||||||
if jid_kind == 'muc':
|
if jid_kind == 'muc':
|
||||||
action = 'Join'
|
action = 'Join'
|
||||||
# TODO Create configurations for group chat preview
|
# TODO Create configurations for group chat preview
|
||||||
|
@ -823,6 +826,7 @@ class FileUtilities:
|
||||||
'name' : title,
|
'name' : title,
|
||||||
'nodes' : nodes,
|
'nodes' : nodes,
|
||||||
'note' : note or '',
|
'note' : note or '',
|
||||||
|
'subject' : subject or '',
|
||||||
'uri' : xmpp_uri or '',
|
'uri' : xmpp_uri or '',
|
||||||
'view_href' : view_href}
|
'view_href' : view_href}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue