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:
Askia Linder
2025-10-15 09:13:37 -07:00
committed by Daniel D’Aquino
parent 6605c5e583
commit 61f695b7c6
22 changed files with 767 additions and 31 deletions
+16
View File
@@ -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: ()))
}
}