Ah, well thanks for your patience!
I'm no developer so I can't talk about the code, but I did some checking on Demo Dataverse, which is running Dataverse v5.11.1. When a Dataverse collection is published, the system will send an in-app notification (in the Notifications tab of the users' account page) to all accounts that have been given a File Downloader role on the collection. As far as I can tell, those users don't get these notifications as email notifications; they get only the in-app notification.
I've tried to maintain an
"Inventory of Dataverse email and in-app user notifications" and just added this information. I hope that document is helpful, although some information is probably wrong or missing. It's also tough to organize it in a spreadsheet like this, especially with these kinds of exceptions. Maybe something like a flowchart would make more sense.