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.
13 lines
613 B
Swift
13 lines
613 B
Swift
|
|
extension Storage : SessionMessagingKitStorageProtocol, SessionSnodeKitStorageProtocol {
|
|
|
|
public func updateMessageIDCollectionByPruningMessagesWithIDs(_ messageIDs: Set<String>, using transaction: Any) {
|
|
let transaction = transaction as! YapDatabaseReadWriteTransaction
|
|
OWSPrimaryStorage.shared().updateMessageIDCollectionByPruningMessagesWithIDs(messageIDs, in: transaction)
|
|
}
|
|
|
|
public func getUserProfile(using transaction: Any) -> OWSUserProfile {
|
|
return OWSProfileManager.shared().getLocalUserProfile(with: transaction as! YapDatabaseReadWriteTransaction)
|
|
}
|
|
}
|