Various Fixes

This commit is contained in:
Ilya Laktyushin
2021-03-23 15:14:09 +05:00
parent 9e25139b1b
commit 6c6e287427
4 changed files with 20 additions and 8 deletions

View File

@@ -1364,6 +1364,13 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
case .replyThread:
postAsReply = true
}
if let messageId = messageId, let message = strongSelf.chatDisplayNode.historyNode.messageInCurrentHistoryView(messageId) {
if let author = message.author as? TelegramUser, author.botInfo != nil {
} else {
postAsReply = false
}
}
}
strongSelf.chatDisplayNode.setupSendActionOnViewUpdate({