Add Timeline switcher button in PostingTimelineView. Switch between your following or NIP-81 favorites. User can favorite a user via ProfileActionSheetView or ProfileView.
Closes: https://github.com/damus-io/damus/issues/2438 Changelog-Added: Add Timeline switcher button for NIP-81-favorites Signed-off-by: Askeew <askeew@hotmail.com>
This commit is contained in:
committed by
Daniel D’Aquino
parent
6605c5e583
commit
61f695b7c6
@@ -0,0 +1,16 @@
|
||||
struct FavoriteNotify: Notify {
|
||||
typealias Payload = Void
|
||||
var payload: Void
|
||||
}
|
||||
|
||||
extension NotifyHandler {
|
||||
static var favoriteUpdated: NotifyHandler<FavoriteNotify> {
|
||||
.init()
|
||||
}
|
||||
}
|
||||
|
||||
extension Notifications {
|
||||
static func favoriteUpdated() -> Notifications<FavoriteNotify> {
|
||||
.init(.init(payload: ()))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user