Skip to content

Commit 3fc0c3d

Browse files
committed
ensures only one notification email per conversation
1 parent e818c4a commit 3fc0c3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/notifiers/better_together/new_message_notifier.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def should_send_email?
4848
false
4949
else
5050
# Only send one email per unread notifications per conversation
51-
message.id == unread_notifications.first.event.record_id
51+
message.id == unread_notifications.last.event.record_id
5252
end
5353
end
5454
end

0 commit comments

Comments
 (0)