mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Various improvements
This commit is contained in:
@@ -34,6 +34,7 @@ import ChatMessageItemCommon
|
||||
import TelegramStringFormatting
|
||||
import AnimatedCountLabelNode
|
||||
import AudioWaveform
|
||||
import DeviceProximity
|
||||
|
||||
private struct FetchControls {
|
||||
let fetch: (Bool) -> Void
|
||||
@@ -1561,6 +1562,12 @@ public final class ChatMessageInteractiveFileNode: ASDisplayNode {
|
||||
guard let arguments = self.arguments else {
|
||||
return
|
||||
}
|
||||
|
||||
var animated = animated
|
||||
if DeviceProximityManager.shared().currentValue() {
|
||||
animated = false
|
||||
}
|
||||
|
||||
let incoming = message.effectivelyIncoming(context.account.peerId)
|
||||
let messageTheme = incoming ? presentationData.theme.theme.chat.message.incoming : presentationData.theme.theme.chat.message.outgoing
|
||||
|
||||
|
||||
Reference in New Issue
Block a user