mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-06 17:00:13 +00:00
Send videomessages to monoforum "all" tab
This commit is contained in:
parent
e3afecd82c
commit
a173850d41
@ -203,8 +203,13 @@ extension ChatControllerImpl {
|
|||||||
.withUpdatedReplyToMessageId(replyMessageSubject?.subjectModel)
|
.withUpdatedReplyToMessageId(replyMessageSubject?.subjectModel)
|
||||||
.withUpdatedCorrelationId(correlationId)
|
.withUpdatedCorrelationId(correlationId)
|
||||||
|
|
||||||
|
var shouldAnimateMessageTransition = self.chatDisplayNode.shouldAnimateMessageTransition
|
||||||
|
if self.chatLocation.threadId == nil, let channel = self.presentationInterfaceState.renderedPeer?.peer as? TelegramChannel, channel.isMonoForum, let linkedMonoforumId = channel.linkedMonoforumId, let mainChannel = self.presentationInterfaceState.renderedPeer?.peers[linkedMonoforumId] as? TelegramChannel, mainChannel.hasPermission(.sendSomething) {
|
||||||
|
shouldAnimateMessageTransition = false
|
||||||
|
}
|
||||||
|
|
||||||
var usedCorrelationId = false
|
var usedCorrelationId = false
|
||||||
if scheduleTime == nil, self.chatDisplayNode.shouldAnimateMessageTransition, let extractedView = videoController.extractVideoSnapshot() {
|
if scheduleTime == nil, shouldAnimateMessageTransition, let extractedView = videoController.extractVideoSnapshot() {
|
||||||
usedCorrelationId = true
|
usedCorrelationId = true
|
||||||
self.chatDisplayNode.messageTransitionNode.add(correlationId: correlationId, source: .videoMessage(ChatMessageTransitionNodeImpl.Source.VideoMessage(view: extractedView)), initiated: { [weak videoController, weak self] in
|
self.chatDisplayNode.messageTransitionNode.add(correlationId: correlationId, source: .videoMessage(ChatMessageTransitionNodeImpl.Source.VideoMessage(view: extractedView)), initiated: { [weak videoController, weak self] in
|
||||||
videoController?.hideVideoSnapshot()
|
videoController?.hideVideoSnapshot()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user