Call initialize success callback before receiver listener

This commit is contained in:
hensm
2020-02-21 11:39:44 +00:00
parent 374f2cab77
commit 40049985ef

View File

@@ -106,13 +106,13 @@ export function initialize (
, data: { appId: apiConfig.sessionRequest.appId }
});
apiConfig.receiverListener(receiverList.length
? ReceiverAvailability.AVAILABLE
: ReceiverAvailability.UNAVAILABLE);
if (successCallback) {
successCallback();
}
apiConfig.receiverListener(receiverList.length
? ReceiverAvailability.AVAILABLE
: ReceiverAvailability.UNAVAILABLE);
}
export function logMessage (message: string): void {