mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
388 B
Swift
14 lines
388 B
Swift
4 years ago
|
|
||
|
// Mimics Signal's CallKitIdStore
|
||
|
|
||
|
enum CallKitIdStore {
|
||
|
|
||
|
private static let callKitIDCollection = "CallKitIDCollection"
|
||
|
|
||
|
static func setAddress(_ publicKey: String, forCallKitId callKitId: String) {
|
||
|
Storage.write { transaction in
|
||
|
transaction.setObject(publicKey, forKey: callKitId, inCollection: CallKitIdStore.callKitIDCollection)
|
||
|
}
|
||
|
}
|
||
|
}
|