thread: trust own replies in threads
Changelog-Fixed: Fix issue where your own replies were sometimes not trusted Closes: https://github.com/damus-io/damus/issues/3404 Closes: https://github.com/damus-io/damus/pull/3416 Signed-off-by: alltheseas Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
committed by
William Casarin
parent
67e61417d9
commit
cddee92f3a
@@ -46,7 +46,14 @@ struct ChatroomThreadView: View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func trusted_event_filter(_ event: NostrEvent) -> Bool {
|
func trusted_event_filter(_ event: NostrEvent) -> Bool {
|
||||||
!damus.settings.show_trusted_replies_first || damus.contacts.is_in_friendosphere(event.pubkey)
|
// Always trust our own replies; otherwise gate by trusted network when the setting is enabled
|
||||||
|
if event.pubkey == damus.pubkey {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
if !damus.settings.show_trusted_replies_first {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
return damus.contacts.is_in_friendosphere(event.pubkey)
|
||||||
}
|
}
|
||||||
|
|
||||||
func ThreadedSwipeViewGroup(scroller: ScrollViewProxy, events: [NostrEvent]) -> some View {
|
func ThreadedSwipeViewGroup(scroller: ScrollViewProxy, events: [NostrEvent]) -> some View {
|
||||||
|
|||||||
Reference in New Issue
Block a user