mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
Merge pull request #2253 from deltachat/fixup-webxdc.js-2022
fix setting `update_listener`
This commit is contained in:
@@ -17,11 +17,13 @@ window.webxdc = (() => {
|
||||
|
||||
setUpdateListener: (cb, serial) => {
|
||||
last_serial = typeof serial === "undefined" ? 0 : parseInt(serial);
|
||||
update_listener = cb
|
||||
window.__webxdcUpdate();
|
||||
},
|
||||
|
||||
// deprecated 2022-02-20 all updates are returned through the callback set by setUpdateListener
|
||||
getAllUpdates: () => {
|
||||
console.error("deprecated 2022-02-20 all updates are returned through the callback set by setUpdateListener")
|
||||
return Promise.resolve([]);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user