mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
[WIP] General history loading and topic improvements
This commit is contained in:
@@ -100,7 +100,8 @@ private enum ChatListSearchEntry: Comparable, Identifiable {
|
||||
ignoreUnreadBadge: true,
|
||||
displayAsMessage: true,
|
||||
hasFailedMessages: false,
|
||||
forumTopicData: nil
|
||||
forumTopicData: nil,
|
||||
topForumTopicItems: []
|
||||
),
|
||||
editing: false,
|
||||
hasActiveRevealControls: false,
|
||||
@@ -245,7 +246,7 @@ class ChatSearchResultsControllerNode: ViewControllerTracingNode, UIScrollViewDe
|
||||
return
|
||||
}
|
||||
switch item.content {
|
||||
case let .peer(messages, peer, _, _, _, _, _, _, _, _, _, _, _, _, _):
|
||||
case let .peer(messages, peer, _, _, _, _, _, _, _, _, _, _, _, _, _, _):
|
||||
if let message = messages.first {
|
||||
let chatController = strongSelf.context.sharedContext.makeChatController(context: strongSelf.context, chatLocation: .peer(id: peer.peerId), subject: .message(id: .id(message.id), highlight: true, timecode: nil), botStart: nil, mode: .standard(previewing: true))
|
||||
chatController.canReadHistory.set(false)
|
||||
|
||||
Reference in New Issue
Block a user