fix(desktop): let channel members bypass mention agent gate (#965)

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Taylor Ho
2026-06-11 09:21:07 -07:00
committed by GitHub
parent 8f580f308c
commit 6f3733d43b

View File

@@ -209,7 +209,11 @@ export function useMentions(
if (isArchivedDiscovery(pubkey)) {
return;
}
if (candidate.isAgent && !mentionableAgentPubkeys.has(pubkey)) {
if (
candidate.isAgent &&
!candidate.isMember &&
!mentionableAgentPubkeys.has(pubkey)
) {
return;
}