add a shim for "sub" push notifications

This commit is contained in:
or-else
2022-05-24 20:21:49 -07:00
parent 2b51f19fbd
commit 4ff315329c
7 changed files with 20 additions and 7 deletions
+7
View File
@@ -7756,6 +7756,13 @@ class TinodeWeb extends (react__WEBPACK_IMPORTED_MODULE_0___default().Component)
this.tinode.oobNotification('read', data.topic, data.seq);
break;
case 'sub':
this.tinode.oobNotification('sub', data.topic, -1, data.xfrom, {
give: data.modeGiven,
want: modeWant
});
break;
default:
console.warn("Unknown push type ignored", data.what, data);
}