Fix notification token passing

This commit is contained in:
Peter 2019-10-23 22:29:03 +04:00
parent 793149ad67
commit f3849e5769
2 changed files with 6 additions and 2 deletions

View File

@ -291,6 +291,9 @@
if (initializeApi && _apiEnvironment != nil)
{
if (MTLogEnabled()) {
MTLog(@"apiEnvironment: %d", (int)_apiEnvironment.systemCode.length);
}
MTBuffer *buffer = [[MTBuffer alloc] init];
// invokeWithLayer

View File

@ -251,8 +251,9 @@ final class SharedApplicationContext {
precondition(!testIsLaunched)
testIsLaunched = true
self.deviceToken.set(voipTokenPromise.get()
|> map(Optional.init))
let _ = voipTokenPromise.get().start(next: { token in
self.deviceToken.set(.single(token))
})
let launchStartTime = CFAbsoluteTimeGetCurrent()