mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-03-17 21:18:40 +00:00
Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios
This commit is contained in:
@@ -1434,7 +1434,10 @@ private final class NotificationServiceHandler {
|
||||
switch state {
|
||||
case let .idBased(maxIncomingReadId, _, _, _, _):
|
||||
if maxIncomingReadId >= messageId.id {
|
||||
Logger.shared.log("NotificationService \(episode)", "maxIncomingReadId: \(maxIncomingReadId), messageId: \(messageId.id), skipping")
|
||||
content = NotificationContent(isLockedMessage: nil)
|
||||
} else {
|
||||
Logger.shared.log("NotificationService \(episode)", "maxIncomingReadId: \(maxIncomingReadId), messageId: \(messageId.id), not skipping")
|
||||
}
|
||||
case .indexBased:
|
||||
break
|
||||
|
||||
@@ -1371,7 +1371,7 @@ public final class ChatListNode: ListView {
|
||||
|
||||
let suggestPasswordSetup: Signal<Bool, NoError>
|
||||
if case .chatList(groupId: .root) = location, chatListFilter == nil {
|
||||
suggestPasswordSetup = combineLatest(
|
||||
suggestPasswordSetup = .single(false) |> then(combineLatest(
|
||||
getServerProvidedSuggestions(account: context.account),
|
||||
context.engine.auth.twoStepVerificationConfiguration()
|
||||
)
|
||||
@@ -1389,7 +1389,7 @@ public final class ChatListNode: ListView {
|
||||
return false
|
||||
}
|
||||
return suggestions.contains(.setupPassword)
|
||||
}
|
||||
})
|
||||
|> distinctUntilChanged
|
||||
} else {
|
||||
suggestPasswordSetup = .single(false)
|
||||
|
||||
Reference in New Issue
Block a user