Skip to content

Conversation

@Flink
Copy link
Contributor

@Flink Flink commented Oct 30, 2025

When a user is invited to an existing private message, they were not receiving notifications for subsequent messages. This occurred because TopicUser records are created lazily when a user first visits a topic, but PostAlerter#notify_pm_users checks the notification level immediately when determining who should receive notifications.

This PR explicitly creates a TopicUser record with its notification level set to watching immediately after granting PM access, ensuring the invited user receives notifications for all subsequent messages even before their first visit.

@Flink Flink self-assigned this Oct 30, 2025
When a user is invited to an existing private message, they were not
receiving notifications for subsequent messages. This occurred because
`TopicUser` records are created lazily when a user first visits a topic,
but `PostAlerter#notify_pm_users` checks the notification level
immediately when determining who should receive notifications.

This patch explicitly creates a `TopicUser` record with its notification
level set to `watching` immediately after granting PM access, ensuring
the invited user receives notifications for all subsequent messages even
before their first visit.
@Flink Flink force-pushed the loic/watch-pm-when-invited branch from 6885bd8 to 4485c6a Compare October 30, 2025 16:59
@Flink Flink marked this pull request as ready for review October 31, 2025 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants