Save hat URI, not id

This commit is contained in:
JC Brand 2020-05-20 13:44:29 +02:00
parent 1e44f45a68
commit ca7adeedbd

View File

@ -727,7 +727,7 @@ const st = {
} else if (child.matches('hats') && child.getAttribute('xmlns') === Strophe.NS.MUC_HATS) { } else if (child.matches('hats') && child.getAttribute('xmlns') === Strophe.NS.MUC_HATS) {
data['hats'] = Array.from(child.children).map(c => c.matches('hat') && { data['hats'] = Array.from(child.children).map(c => c.matches('hat') && {
'title': c.getAttribute('title'), 'title': c.getAttribute('title'),
'id': c.getAttribute('id') 'uri': c.getAttribute('uri')
}); });
} }
}); });