mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Merge branch 'beta'
# Conflicts: # submodules/TelegramUI/Sources/ChatInterfaceInputContexts.swift
This commit is contained in:
commit
a4b39e6fd0
@ -601,6 +601,17 @@ public final class TelegramMediaImageRepresentation: PostboxCoding, Equatable, C
|
|||||||
TelegramCore_TelegramMediaImageRepresentation.add(hasVideo: self.hasVideo, &builder)
|
TelegramCore_TelegramMediaImageRepresentation.add(hasVideo: self.hasVideo, &builder)
|
||||||
TelegramCore_TelegramMediaImageRepresentation.add(isPersonal: self.isPersonal, &builder)
|
TelegramCore_TelegramMediaImageRepresentation.add(isPersonal: self.isPersonal, &builder)
|
||||||
|
|
||||||
|
let mappedTypeHint: TelegramCore_TelegramMediaImageRepresentation_TypeHint
|
||||||
|
switch self.typeHint {
|
||||||
|
case .generic:
|
||||||
|
mappedTypeHint = .generic
|
||||||
|
case .animated:
|
||||||
|
mappedTypeHint = .animated
|
||||||
|
case .video:
|
||||||
|
mappedTypeHint = .video
|
||||||
|
}
|
||||||
|
TelegramCore_TelegramMediaImageRepresentation.add(typeHint: mappedTypeHint, &builder)
|
||||||
|
|
||||||
return TelegramCore_TelegramMediaImageRepresentation.endTelegramMediaImageRepresentation(&builder, start: start)
|
return TelegramCore_TelegramMediaImageRepresentation.endTelegramMediaImageRepresentation(&builder, start: start)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user