From 7680767689062d2091989ad355cde3784fa17611 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Jaussoin?= Date: Thu, 1 Oct 2020 18:17:31 +0200 Subject: [PATCH] Also notify for Chat headlines --- app/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/User.php b/app/User.php index 4fbd9bf3e..2f4654919 100644 --- a/app/User.php +++ b/app/User.php @@ -53,7 +53,7 @@ class User extends Model ->where('seen', false) ->where('jidfrom', '!=', $this->id) ->where(function ($query) use ($quoted) { - $query->where('type', 'chat') + $query->whereIn('type', ['chat', 'headline']) ->orWhere(function ($query) use ($quoted) { $query->where('type', 'groupchat') ->whereNull('subject');