Fix background instance activating

This commit is contained in:
Eduard Kuzmenko 2021-08-13 20:48:20 +03:00
parent 318035e971
commit 69394fe3ac

View File

@ -230,6 +230,10 @@ export class AppImManager {
stateStorage.setToCache('chatPositions', c || {}); stateStorage.setToCache('chatPositions', c || {});
}); });
// ! do not remove this line
// ! instance can be deactivated before the UI starts, because it waits in background for RAF that is delayed
singleInstance.activateInstance();
this.addAnchorListener<{}>({ this.addAnchorListener<{}>({
name: 'showMaskedAlert', name: 'showMaskedAlert',
callback: (params, element) => { callback: (params, element) => {