mirror of https://github.com/oxen-io/session-ios
Set pre key bundle in FriendRequestMessage and EndSessionMessage.
Updated PreKey Operations to not contact signal servers.pull/14/head
parent
bd93c01d92
commit
705e5f939d
@ -1 +1 @@
|
||||
Subproject commit 21ee23a8e22e91459835b682d821f862f75be233
|
||||
Subproject commit aa0882607c603f6ef576c9538e2f6481d09fd0ce
|
@ -0,0 +1,16 @@
|
||||
public extension SSKProtoPrekeyBundleMessage {
|
||||
|
||||
@objc public class func builder(fromPreKeyBundle preKeyBundle: PreKeyBundle) -> SSKProtoPrekeyBundleMessageBuilder {
|
||||
let builder = self.builder()
|
||||
|
||||
builder.setIdentityKey(preKeyBundle.identityKey)
|
||||
builder.setPrekeyID(UInt32(preKeyBundle.preKeyId))
|
||||
builder.setPrekey(preKeyBundle.preKeyPublic)
|
||||
builder.setSignedKeyID(UInt32(preKeyBundle.signedPreKeyId))
|
||||
builder.setSignedKey(preKeyBundle.signedPreKeyPublic)
|
||||
builder.setSignature(preKeyBundle.signedPreKeySignature)
|
||||
|
||||
return builder
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue