Various fixes

This commit is contained in:
Ilya Laktyushin
2022-10-19 17:19:36 +03:00
parent ae2b70c6e6
commit 4780bd8912
4 changed files with 47 additions and 8 deletions

View File

@@ -1479,13 +1479,17 @@ final class ChatMessageInteractiveFileNode: ASDisplayNode {
foregroundNodeColor = .white
} else {
backgroundNodeColor = messageTheme.mediaActiveControlColor
foregroundNodeColor = .clear
if incoming && messageTheme.mediaActiveControlColor.rgb != 0xffffff {
foregroundNodeColor = .white
} else {
foregroundNodeColor = .clear
}
}
if state != .none && self.statusNode == nil {
var image: Signal<(TransformImageArguments) -> DrawingContext?, NoError>? = nil
if file.isMusic {
if file.isMusic || file.isInstantVideo {
if file.fileName?.lowercased().hasSuffix(".ogg") == true {
} else {
var title: String?