mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 17:06:31 -06:00
FIX: Inviting a group that I am part of creates a notification.
https://meta.discourse.org/t/inviting-a-group-to-a-message-does-not-trigger-a-notification-mail/50509/10?u=tgxworld
This commit is contained in:
parent
42e0aaed61
commit
07f1d90b88
@ -765,7 +765,8 @@ SQL
|
||||
group_id = group.id
|
||||
|
||||
group.users.where(
|
||||
"group_users.notification_level > ?", NotificationLevels.all[:muted]
|
||||
"group_users.notification_level > ? AND user_id != ?",
|
||||
NotificationLevels.all[:muted], user.id
|
||||
).find_each do |u|
|
||||
|
||||
u.notifications.create!(
|
||||
|
@ -675,6 +675,7 @@ describe Topic do
|
||||
|
||||
group.add(user)
|
||||
group.add(user_2)
|
||||
group.add(topic.user)
|
||||
|
||||
group.group_users.find_by(user: user_2).update!(
|
||||
notification_level: NotificationLevels.all[:muted]
|
||||
|
Loading…
Reference in New Issue
Block a user