Skip to content

Commit

Permalink
1.9.7 (445)
Browse files Browse the repository at this point in the history
  • Loading branch information
denis15yo committed Feb 13, 2025
1 parent efab2e6 commit c98a376
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
"location" : "git@bitbucket.org:mobyrix/nicegram-assistant-ios.git",
"state" : {
"branch" : "develop",
"revision" : "221350611fd0d4e4c2c0e2e46c96604e9ca7b99c"
"revision" : "492e38af590943f120577416f8ba0d5f4a5ec9f4"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion submodules/ChatListUI/Sources/ChatListController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ public class ChatListControllerImpl: TelegramBaseController, ChatListController
self.updateNavigationMetadata()

// MARK: Nicegram NCG-7102 bottom folders fix
_ = (self.ready.get() |> take(1) |> deliverOnMainQueue)
_ = (self.ready.get() |> deliverOnMainQueue)
.start { [weak self] flag in
guard let self else { return }

Expand Down
6 changes: 2 additions & 4 deletions submodules/ChatListUI/Sources/ChatListControllerNode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ public final class ChatListContainerNode: ASDisplayNode, ASGestureRecognizerDele

public func switchToFilter(id: ChatListFilterTabEntryId, animated: Bool = true, completion: (() -> Void)? = nil) {
// MARK: Nicegram NCG-7102 bottom folders fix
ngLog("===NCG-7102=== switchToFilter enter: id = \(id), pendingItemNode = \(pendingItemNode)")
ngLog("===NCG-7102=== switchToFilter: id = \(id), itemNodes = \(itemNodes), pendingItemNode = \(pendingItemNode)")
//
self.onFilterSwitch?()
if id != self.selectedId, let index = self.availableFilters.firstIndex(where: { $0.id == id }) {
Expand Down Expand Up @@ -846,9 +846,7 @@ public final class ChatListContainerNode: ASDisplayNode, ASGestureRecognizerDele
self.pendingItemNode?.2.dispose()
let disposable = MetaDisposable()
self.pendingItemNode = (id, itemNode, disposable)
// MARK: Nicegram NCG-7102 bottom folders fix
ngLog("===NCG-7102=== switchToFilter setup pendingItemNode = \(pendingItemNode)")
//

if !animated {
self.selectedId = id
self.applyItemNodeAsCurrent(id: id, itemNode: itemNode)
Expand Down

0 comments on commit c98a376

Please sign in to comment.