Adapt to new method, change timeout to seconds

Signed-off-by: ismailgulek <gulekismail@gmail.com>
This commit is contained in:
ismailgulek
2020-05-29 11:26:43 +03:00
parent 0ceb4bfaa3
commit f06383223b

View File

@@ -173,7 +173,7 @@ class NotificationService: UNNotificationServiceExtension {
}
// launch an initial background sync
mxSession.initialBackgroundSync(withTimeout: 20000) { [weak self] (response) in
mxSession.backgroundSync(withTimeout: 20, ignoreSessionState: true) { [weak self] (response) in
switch response {
case .success:
guard let self = self else {