mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Fix notification token passing
This commit is contained in:
parent
793149ad67
commit
f3849e5769
2 changed files with 6 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue