mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +00:00
Fix notification token passing
This commit is contained in:
parent
793149ad67
commit
f3849e5769
@ -291,6 +291,9 @@
|
||||
|
||||
if (initializeApi && _apiEnvironment != nil)
|
||||
{
|
||||
if (MTLogEnabled()) {
|
||||
MTLog(@"apiEnvironment: %d", (int)_apiEnvironment.systemCode.length);
|
||||
}
|
||||
MTBuffer *buffer = [[MTBuffer alloc] init];
|
||||
|
||||
// invokeWithLayer
|
||||
|
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user