mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 14:45:21 +00:00
Disable pts
This commit is contained in:
@@ -768,11 +768,16 @@ public final class AccountStateManager {
|
|||||||
|> deliverOn(self.queue)
|
|> deliverOn(self.queue)
|
||||||
|> mapToSignal { [weak self] state, invalidatedChannels, disableParallelChannelReset -> Signal<(difference: Api.updates.Difference?, finalStatte: AccountReplayedFinalState?, skipBecauseOfError: Bool, resetState: Bool), NoError> in
|
|> mapToSignal { [weak self] state, invalidatedChannels, disableParallelChannelReset -> Signal<(difference: Api.updates.Difference?, finalStatte: AccountReplayedFinalState?, skipBecauseOfError: Bool, resetState: Bool), NoError> in
|
||||||
if let state = state, let authorizedState = state.state {
|
if let state = state, let authorizedState = state.state {
|
||||||
let flags: Int32
|
var flags: Int32 = 0
|
||||||
let ptsTotalLimit: Int32?
|
var ptsTotalLimit: Int32?
|
||||||
|
|
||||||
flags = 1 << 0
|
if !"".isEmpty {
|
||||||
|
flags |= 1 << 0
|
||||||
ptsTotalLimit = 1000
|
ptsTotalLimit = 1000
|
||||||
|
}
|
||||||
|
|
||||||
|
flags = 0
|
||||||
|
ptsTotalLimit = nil
|
||||||
|
|
||||||
if let strongSelf = self {
|
if let strongSelf = self {
|
||||||
if !invalidatedChannels.isEmpty {
|
if !invalidatedChannels.isEmpty {
|
||||||
|
|||||||
Reference in New Issue
Block a user