mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios
This commit is contained in:
@@ -311,6 +311,12 @@ public final class ChatListNode: ListView {
|
||||
return _ready.get()
|
||||
}
|
||||
|
||||
private let _contentsReady = ValuePromise<Bool>()
|
||||
private var didSetContentsReady = false
|
||||
public var contentsReady: Signal<Bool, NoError> {
|
||||
return _contentsReady.get()
|
||||
}
|
||||
|
||||
public var peerSelected: ((PeerId, Bool, Bool) -> Void)?
|
||||
public var groupSelected: ((PeerGroupId) -> Void)?
|
||||
public var addContact: ((String) -> Void)?
|
||||
@@ -1158,6 +1164,10 @@ public final class ChatListNode: ListView {
|
||||
strongSelf.didSetReady = true
|
||||
strongSelf._ready.set(true)
|
||||
}
|
||||
if !strongSelf.didSetContentsReady {
|
||||
strongSelf.didSetContentsReady = true
|
||||
strongSelf._contentsReady.set(true)
|
||||
}
|
||||
|
||||
var isEmpty = false
|
||||
if transition.chatListView.filteredEntries.isEmpty {
|
||||
|
||||
Reference in New Issue
Block a user