mirror of
https://github.com/moparisthebest/kaiwa
synced 2024-11-12 04:25:05 -05:00
Fetch disco & timezone per resource.
This commit is contained in:
parent
5de45e0c12
commit
0a4e0f9edd
@ -155,6 +155,11 @@ module.exports = function (client, app) {
|
||||
resource = new Resource(pres);
|
||||
resource.id = pres.from.full;
|
||||
contact.resources.add(resource);
|
||||
|
||||
if (!pres.caps) {
|
||||
resource.fetchDisco();
|
||||
}
|
||||
resource.fetchTimezone();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user