session-ios/SignalUtilitiesKit/GeneralUtilities.swift
2020-11-11 10:58:56 +11:00

7 lines
227 B
Swift

public func getUserHexEncodedPublicKey() -> String {
if let keyPair = OWSIdentityManager.shared().identityKeyPair() { // Can be nil under some circumstances
return keyPair.hexEncodedPublicKey
}
return ""
}