[WIP] Topics

This commit is contained in:
Ali
2022-10-24 22:37:59 +04:00
parent 643d650fd1
commit 38912b874e
10 changed files with 40 additions and 37 deletions

View File

@@ -830,12 +830,12 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
}
}
var openChatLocation = strongSelf.chatLocation
if case let .replyThread(replyThreadMessage) = openChatLocation {
let openChatLocation = strongSelf.chatLocation
/*if case let .replyThread(replyThreadMessage) = openChatLocation {
if message.threadId != makeMessageThreadId(replyThreadMessage.messageId) {
openChatLocation = .peer(id: message.id.peerId)
}
}
}*/
return context.sharedContext.openChatMessage(OpenChatMessageParams(context: context, updatedPresentationData: strongSelf.updatedPresentationData, chatLocation: openChatLocation, chatLocationContextHolder: strongSelf.chatLocationContextHolder, message: message, standalone: false, reverseMessageGalleryOrder: false, mode: mode, navigationController: strongSelf.effectiveNavigationController, dismissInput: {
self?.chatDisplayNode.dismissInput()