Simplify messageReceiver initialization & reset
Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
parent
f057bc560f
commit
dfd564e67f
6 changed files with 318 additions and 289 deletions
|
@ -1157,7 +1157,7 @@ export type WebAPIType = {
|
|||
unregisterRequestHandler: (handler: IRequestHandler) => void;
|
||||
onHasStoriesDisabledChange: (newValue: boolean) => void;
|
||||
checkSockets: () => void;
|
||||
isOnline: () => boolean;
|
||||
isOnline: () => boolean | undefined;
|
||||
onNavigatorOnline: () => Promise<void>;
|
||||
onNavigatorOffline: () => Promise<void>;
|
||||
onRemoteExpiration: () => Promise<void>;
|
||||
|
@ -1637,7 +1637,7 @@ export function initialize({
|
|||
void socketManager.check();
|
||||
}
|
||||
|
||||
function isOnline(): boolean {
|
||||
function isOnline(): boolean | undefined {
|
||||
return socketManager.isOnline;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue