Name2key, Group chat, Group invite / group invite accept / group invite reject

This commit is contained in:
Casper Warden
2017-12-14 18:22:41 +00:00
parent 65526c6d21
commit eab57f8ced
33 changed files with 526 additions and 21 deletions

View File

@@ -245,7 +245,18 @@ export class Caps
{
this.request(url, LLSD.LLSD.formatXML(data), 'application/llsd+xml').then((body: string) =>
{
resolve(LLSD.LLSD.parseXML(body));
let result: any = null;
try
{
result = LLSD.LLSD.parseXML(body);
}
catch (err)
{
console.error('Error parsing LLSD');
console.error(body);
reject(err);
}
resolve(result);
}).catch((err) =>
{
console.error(err);