Notifications not received for private messages I'm invited to

AI-generated summary

A user, ChrisBeach, reported not receiving notifications for private messages (PMs) they were invited to. jomaxro and codinghorror acknowledged the issue and discussed possible solutions.

jomaxro suggested that being invited to a PM should set the user’s notification state to “watching,” allowing them to receive future notifications. sam agreed, proposing that users should automatically “watch” a PM upon invitation and have the option to receive an email notification.

The discussion led to a potential flow change for PM invites, including an invite email with a summary of the conversation and the option to accept or decline. sam suggested this would improve the user experience, especially for those not frequently using the site.

The issue was addressed by tgxworld, who implemented a change to set the notification level to “watching” when a user visits or replies to a PM. However, tgxworld and sam continued to discuss the details, including the notification level for groups and the addition of a site-wide setting.

Ultimately, tgxworld fixed the issue for groups, using the user’s notification level for that group instead of “watching.” The solution was implemented in two commits: https://github.com/discourse/discourse/commit/c1f53e1ece69421cec4c03e99c4872c852dba2db and https://github.com/discourse/discourse/commit/42e0aaed613a88ae5682cd0ae0f57a0083d1a52a.

I was recently invited to a PM conversation involving a moderator and member of my site.

This turned into quite an important conversation because the member was discussing paying for advertising on my forum (and had just paid, and wanted to know if I’d received the payment).

Unfortunately I never saw her most recent PM message. Discourse never alerted me to it in any way. I only found it when I saw an unexpected payment in my bank account from that member! Eventually I browsed to my messages page, and there was the message.

IMO when I’m invited into a PM chain, I should be notified of new messages in that chain.

「いいね!」 1

I believe @jomaxro is looking at this.

「いいね!」 3

Was looking at a different PM notification issue, I’ll add this to my list.

「いいね!」 4

@codinghorror @jomaxro thank you, both.

I suspect this is the same issue based on the description.

「いいね!」 1

Just tested this. I did receive a notification that I was invited to a PM. However, my notification state remained normal, so I indeed was not notified of future messages. @codinghorror, my opinion is that being invited to a PM should set my notification state to watching, and users can change that if wanted. I think defaulting to normal (and thus not easily knowing that there are more messages) is not ideal.

Edit: To emphasize, this suggestion is for message invites only. Topics are visible in /latest so it’s not a major concern. PMs are quite hidden if you’re not notified.

「いいね!」 5

What are your feelings on this @sam

Yeah I think this is buggy, when you are invited to a PM you should automatically watch it, anything else is unexpected imo.

Furthermore I think people should be able to opt to get an email when they are invited to a PM in case they are not heavy website users.

「いいね!」 7

Kind of annoying to be forced to watch a topic the minute you are invited. That’s actually griefing..

I say you should only watch once you VISIT the topic and implictly “accept” the invite.

「いいね!」 2

Keep in mind that PM invites are “blue” notifications not “green”, so if you get a lot of notifications all at the same time, it’s possible to miss it.

「いいね!」 1

Perhaps if we change the flow it would make more sense:

Invite to a PM:

  1. Triggers an invite email, “Bob invited you to XYZ conversation, with a summary of the last few posts, would you like to accept” (email notification if you are not on site, green notification if you are out of the box)

  2. You click accept and are added into the PM as watching

I do agree that the “I can just silently add people to a PM if they want to or not” as any user is a problem, we need a different flow for people being pulled in to a discussion vs people who are there from get go.

「いいね!」 7

We support

  1. Change it so you “watch at message” as soon as you visit it OR reply to it. (not before) … default on.

    • amend copy of invite to explain that this must happen for you to watch the message.
  2. Add a site setting for “closed groups” that allows you to opt the entire site to “watch as soon as invited”. “watch_messages_on_invite” default off.

@tgxworld can you take this as it popped up a few times now, would be better just to close it for good.

「いいね!」 9

This is implemented in

https://github.com/discourse/discourse/commit/c1f53e1ece69421cec4c03e99c4872c852dba2db

I need to clarify what we actually want here because we’re currently setting the notification level to tracking once a user replies to any topic. Is the intention to update the code such that the notification level is watching for PM and tracking for normal topics?

I’m not sure which copy we’re referring to here. Is this for the mailer?

I need to clarify this feature as well. Is this for closed groups only or is this a site wide setting? What is the difference between “watch as soon as invited” and “watch_messages_on_invite”?

「いいね!」 6

@sam Hmm should automatically watching the PM be applied to groups?

I think for groups it should use the user’s notification level of that group instead of “watching”.

「いいね!」 4

Good point :+1: , I totally forgot that groups have a default_notification_level field. Fixed in

https://github.com/discourse/discourse/commit/42e0aaed613a88ae5682cd0ae0f57a0083d1a52a

「いいね!」 6