rebuild with the SDK fix + better error reporting
This commit is contained in:
@@ -770,12 +770,12 @@ class TinodeWeb extends React.Component {
|
||||
}
|
||||
} else if (what == 'del') {
|
||||
// TODO: messages deleted (hard or soft) -- update pill counter.
|
||||
} else if (what == 'upd') {
|
||||
// upd - handled by the SDK. Explicitly ignoring here.
|
||||
} else if (what == 'upd' || what == 'call') {
|
||||
// upd, call - handled by the SDK. Explicitly ignoring here.
|
||||
} else {
|
||||
// TODO(gene): handle other types of notifications:
|
||||
// * ua -- user agent changes (maybe display a pictogram for mobile/desktop).
|
||||
console.info("Unsupported (yet) presence update:" + what + " in: " + cont.topic);
|
||||
console.info("Unsupported (yet) presence update:", what, "in", cont.topic);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1287,7 +1287,9 @@ class TinodeWeb extends React.Component {
|
||||
handleUnarchive(topicName) {
|
||||
const topic = this.tinode.getTopic(topicName);
|
||||
if (topic) {
|
||||
topic.archive(false);
|
||||
topic.archive(false).catch((err) => {
|
||||
this.handleError(err.message, 'err');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+5
-3
@@ -8232,8 +8232,8 @@ class TinodeWeb extends (react__WEBPACK_IMPORTED_MODULE_0___default().Component)
|
||||
topicSelectedAcs: cont.acs
|
||||
});
|
||||
}
|
||||
} else if (what == 'del') {} else if (what == 'upd') {} else {
|
||||
console.info("Unsupported (yet) presence update:" + what + " in: " + cont.topic);
|
||||
} else if (what == 'del') {} else if (what == 'upd' || what == 'call') {} else {
|
||||
console.info("Unsupported (yet) presence update:", what, "in", cont.topic);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8779,7 +8779,9 @@ class TinodeWeb extends (react__WEBPACK_IMPORTED_MODULE_0___default().Component)
|
||||
const topic = this.tinode.getTopic(topicName);
|
||||
|
||||
if (topic) {
|
||||
topic.archive(false);
|
||||
topic.archive(false).catch(err => {
|
||||
this.handleError(err.message, 'err');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+26
-232
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user