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.
session-ios/Session/Calls/Utilities/CallKitIdStore.swift

14 lines
388 B
Swift

// 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)
}
}
}