Update protos to reflect link previews.
This commit is contained in:
parent
5a529567aa
commit
aa916965d0
|
@ -356,6 +356,10 @@ class MessageField:
|
||||||
# TODO: I'm not sure why "Apple Swift Proto" code formats the
|
# TODO: I'm not sure why "Apple Swift Proto" code formats the
|
||||||
# the name in this way.
|
# the name in this way.
|
||||||
name = 'hasID'
|
name = 'hasID'
|
||||||
|
elif name == 'hasUrl':
|
||||||
|
# TODO: I'm not sure why "Apple Swift Proto" code formats the
|
||||||
|
# the name in this way.
|
||||||
|
name = 'hasURL'
|
||||||
return name
|
return name
|
||||||
|
|
||||||
class MessageContext(BaseContext):
|
class MessageContext(BaseContext):
|
||||||
|
|
|
@ -2763,7 +2763,7 @@ extension SSKProtoDataMessageContact.SSKProtoDataMessageContactBuilder {
|
||||||
}
|
}
|
||||||
|
|
||||||
fileprivate class func parseProto(_ proto: SignalServiceProtos_DataMessage.Preview) throws -> SSKProtoDataMessagePreview {
|
fileprivate class func parseProto(_ proto: SignalServiceProtos_DataMessage.Preview) throws -> SSKProtoDataMessagePreview {
|
||||||
guard proto.hasUrl else {
|
guard proto.hasURL else {
|
||||||
throw SSKProtoError.invalidProtobuf(description: "\(logTag) missing required field: url")
|
throw SSKProtoError.invalidProtobuf(description: "\(logTag) missing required field: url")
|
||||||
}
|
}
|
||||||
let url = proto.url
|
let url = proto.url
|
||||||
|
|
Loading…
Reference in New Issue