no message

This commit is contained in:
Peter
2017-05-26 13:11:25 +03:00
parent f93eebb273
commit ae7c0af98a
77 changed files with 1558 additions and 408 deletions

View File

@@ -90,7 +90,7 @@ public final class TelegramMediaImageRepresentation: Coding, Equatable, CustomSt
}
public init(decoder: Decoder) {
self.dimensions = CGSize(width: CGFloat(decoder.decodeInt32ForKey("dx")), height: CGFloat(decoder.decodeInt32ForKey("dy")))
self.dimensions = CGSize(width: CGFloat(decoder.decodeInt32ForKey("dx", orElse: 0)), height: CGFloat(decoder.decodeInt32ForKey("dy", orElse: 0)))
self.resource = decoder.decodeObjectForKey("r") as! TelegramMediaResource
}