mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-16 10:30:08 +00:00
More sharing fixes
This commit is contained in:
parent
718d4779e4
commit
b92b4fb182
@ -374,7 +374,10 @@ public func sentShareItems(account: Account, to peerIds: [PeerId], items: [Prepa
|
|||||||
} else if let media = media.media as? TelegramMediaFile {
|
} else if let media = media.media as? TelegramMediaFile {
|
||||||
if media.isVideo {
|
if media.isVideo {
|
||||||
mediaTypes.video += 1
|
mediaTypes.video += 1
|
||||||
} else if let fileName = media.fileName, fileName.hasPrefix("mp3") || fileName.hasPrefix("m4a") {
|
} else if media.isVoice || media.isAnimated || media.isSticker {
|
||||||
|
mediaTypes = (0, 0, 0, 0)
|
||||||
|
break
|
||||||
|
} else if let fileName = media.fileName?.lowercased(), fileName.hasPrefix(".mp3") || fileName.hasPrefix("m4a") {
|
||||||
mediaTypes.music += 1
|
mediaTypes.music += 1
|
||||||
} else {
|
} else {
|
||||||
mediaTypes.other += 1
|
mediaTypes.other += 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user