From cddee92f3af6bbacd19fba7f6c21ae4174769423 Mon Sep 17 00:00:00 2001 From: alltheseas <64376233+alltheseas@users.noreply.github.com> Date: Wed, 10 Dec 2025 17:08:06 -0600 Subject: [PATCH] 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 --- damus/Features/Chat/ChatroomThreadView.swift | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/damus/Features/Chat/ChatroomThreadView.swift b/damus/Features/Chat/ChatroomThreadView.swift index 9bab7aec..bfc73bd0 100644 --- a/damus/Features/Chat/ChatroomThreadView.swift +++ b/damus/Features/Chat/ChatroomThreadView.swift @@ -46,7 +46,14 @@ struct ChatroomThreadView: View { } 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 {