mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-08 08:31:13 +00:00
Fix forum hole reset
This commit is contained in:
parent
83636d5a4d
commit
196b1cf7b7
@ -2414,6 +2414,8 @@ private func resetChannels(postbox: Postbox, network: Network, peers: [Peer], st
|
|||||||
notificationSettings[peerId] = TelegramPeerNotificationSettings(apiSettings: apiNotificationSettings)
|
notificationSettings[peerId] = TelegramPeerNotificationSettings(apiSettings: apiNotificationSettings)
|
||||||
|
|
||||||
updatedState.updatePeerChatInclusion(peerId: peerId, groupId: groupId, changedGroup: false)
|
updatedState.updatePeerChatInclusion(peerId: peerId, groupId: groupId, changedGroup: false)
|
||||||
|
|
||||||
|
updatedState.resetForumTopicLists[peerId] = []
|
||||||
}
|
}
|
||||||
|
|
||||||
for message in messages {
|
for message in messages {
|
||||||
@ -2490,7 +2492,11 @@ private func resetChannels(postbox: Postbox, network: Network, peers: [Peer], st
|
|||||||
private func pollChannel(postbox: Postbox, network: Network, peer: Peer, state: AccountMutableState) -> Signal<(AccountMutableState, Bool, Int32?), NoError> {
|
private func pollChannel(postbox: Postbox, network: Network, peer: Peer, state: AccountMutableState) -> Signal<(AccountMutableState, Bool, Int32?), NoError> {
|
||||||
if let inputChannel = apiInputChannel(peer) {
|
if let inputChannel = apiInputChannel(peer) {
|
||||||
let limit: Int32
|
let limit: Int32
|
||||||
|
#if DEBUG
|
||||||
|
limit = 2
|
||||||
|
#else
|
||||||
limit = 100
|
limit = 100
|
||||||
|
#endif
|
||||||
|
|
||||||
let pollPts: Int32
|
let pollPts: Int32
|
||||||
if let channelState = state.channelStates[peer.id] {
|
if let channelState = state.channelStates[peer.id] {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user