Various improvements

This commit is contained in:
Isaac 2026-02-06 15:18:17 +04:00
parent 44fab3078a
commit 45b1306274
33 changed files with 158 additions and 117 deletions

View file

@ -3903,7 +3903,9 @@ public final class ChatHistoryListNodeImpl: ListView, ChatHistoryNode, ChatHisto
loadState = .messages
} else if let historyView = strongSelf.historyView {
if historyView.filteredEntries.isEmpty {
if let firstEntry = historyView.originalView.entries.first {
if historyView.originalView.isLoading {
loadState = .loading(false)
} else if let firstEntry = historyView.originalView.entries.first {
var emptyType = ChatHistoryNodeLoadState.EmptyType.generic
for media in firstEntry.message.media {
if let action = media as? TelegramMediaAction {