We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b0d108 commit 27d9283Copy full SHA for 27d9283
1 file changed
Sources/NextcloudKit/NextcloudKit+Capabilities.swift
@@ -430,6 +430,10 @@ actor CapabilitiesStore {
430
func set(_ account: String, value: NKCapabilities.Capabilities) {
431
store[account] = value
432
}
433
+
434
+ func remove(_ account: String) {
435
+ store.removeValue(forKey: account)
436
+ }
437
438
439
/// Singleton container and public API for accessing and caching capabilities.
@@ -500,4 +504,8 @@ final public class NKCapabilities: Sendable {
500
504
501
505
return await store.get(account) ?? Capabilities()
502
506
507
508
+ public func removeCapabilities(for account: String) async {
509
+ await store.remove(account)
510
503
511
0 commit comments