This patch depends on: Adding ability to mute hashtag from SearchView This is the last patch for the new mute list feature - Removing MutedThreadsManager - Adding system to migrate existing muted threads to new mute list Closes: https://github.com/damus-io/damus/issues/1718 Closes: https://github.com/damus-io/damus/issues/856 Lighting Address: fishcharlie@strike.me Signed-off-by: Charlie Fish <contact@charlie.fish> Reviewed-by: William Casarin <jb55@jb55.com> Signed-off-by: William Casarin <jb55@jb55.com>
26 lines
719 B
Swift
26 lines
719 B
Swift
//
|
||
// HeadlessDamusState.swift
|
||
// damus
|
||
//
|
||
// Created by Daniel D’Aquino on 2023-11-27.
|
||
//
|
||
|
||
import Foundation
|
||
|
||
/// HeadlessDamusState
|
||
///
|
||
/// A protocl for a lighter headless alternative to DamusState that does not have dependencies on View objects or UI logic.
|
||
/// This is useful in limited environments (e.g. Notification Service Extension) where we do not want View/UI dependencies
|
||
protocol HeadlessDamusState {
|
||
var ndb: Ndb { get }
|
||
var settings: UserSettingsStore { get }
|
||
var contacts: Contacts { get }
|
||
var keypair: Keypair { get }
|
||
var profiles: Profiles { get }
|
||
var zaps: Zaps { get }
|
||
var lnurls: LNUrls { get }
|
||
|
||
@discardableResult
|
||
func add_zap(zap: Zapping) -> Bool
|
||
}
|