The Discord one was not a data leak It was people complaining about how their groups got scraped when they had the join link public. Same thing can happen to Nostr
Groups should be encrypted either way except if they are public.