The issue of being unable to set notification types for group message inboxes has resurfaced in Discourse 1.6.0.beta7, with users encountering the error Uncaught TypeError: Cannot read property 'setNotification' of undefinedfefrei. Although reloading sometimes temporarily resolves it, the problem persists sporadically, especially for new groups with SSO enabled and login required fefrei. Attempts to reproduce the bug by techAPJ and others on Meta and Try failed, even with new groups techAPJ. fefrei later reproduced it on a fresh Discourse instance by creating a group, enabling incoming mail, and attempting to set notification levels from the inbox notification. Interestingly, the bug appears only when the notification level is still at default and vanishes after the first successful update fefrei. Additionally, fefrei reported another issue: inability to persistently update tracking states for other users, though changes to one’s own state work. sam requested a separate topic for the latter issue, and later sam closed this topic assuming the bug was resolved, inviting reopening if it recurs.
Now it’s happening in Discourse 1.6.0.beta7. The reproduction steps are still the same, the error message is still Uncaught TypeError: Cannot read property 'setNotification' of undefined.
Somehow, after reloading the page, I ended up tracking the inbox, and could switch to watching…
However, I can no longer update the tracking state for someone else (by visiting their messages page). The change appears to work, and there are no errors in the console, but the change reverts when the page reloads. Instead, I changed my own tracking state for this group.
So it looks like the bug is back, or was never really gone.
An observation I made: This only occurs if the level is still at the default. It never happens once you successfully updated a group’s notification level once.
Is there anything I can do to help you debug this?