mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Bot forums v2
This commit is contained in:
parent
63e2a1c417
commit
1d06c3f058
79 changed files with 852 additions and 1303 deletions
|
|
@ -847,8 +847,7 @@ public final class ChatHistoryListNodeImpl: ListView, ChatHistoryNode, ChatHisto
|
|||
subscriptionUntilDate: nil,
|
||||
verificationIconFileId: nil,
|
||||
sendPaidMessageStars: nil,
|
||||
linkedMonoforumId: nil,
|
||||
linkedBotId: nil
|
||||
linkedMonoforumId: nil
|
||||
)
|
||||
messagePeers[author.id] = author
|
||||
|
||||
|
|
@ -4423,9 +4422,11 @@ public final class ChatHistoryListNodeImpl: ListView, ChatHistoryNode, ChatHisto
|
|||
self.interactiveReadActionDisposable = nil
|
||||
}
|
||||
} else if self.interactiveReadActionDisposable == nil {
|
||||
if case let .peer(peerId) = self.chatLocation {
|
||||
if !self.context.sharedContext.immediateExperimentalUISettings.skipReadHistory && !self.context.account.isSupportUser {
|
||||
self.interactiveReadActionDisposable = self.context.engine.messages.installInteractiveReadMessagesAction(peerId: peerId)
|
||||
if !self.context.sharedContext.immediateExperimentalUISettings.skipReadHistory && !self.context.account.isSupportUser {
|
||||
if case let .peer(peerId) = self.chatLocation {
|
||||
self.interactiveReadActionDisposable = self.context.engine.messages.installInteractiveReadMessagesAction(peerId: peerId, threadId: nil)
|
||||
} else if case let .replyThread(replyThread) = self.chatLocation, (replyThread.isForumPost || replyThread.isMonoforumPost) {
|
||||
self.interactiveReadActionDisposable = self.context.engine.messages.installInteractiveReadMessagesAction(peerId: replyThread.peerId, threadId: replyThread.threadId)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue