2
0
Эх сурвалжийг харах

Pass message attrs to `shouldNotifyOfGroupMessage`

JC Brand 4 жил өмнө
parent
commit
9568d57e5f

+ 1 - 1
src/plugins/notifications/utils.js

@@ -80,7 +80,7 @@ export async function shouldNotifyOfGroupMessage (attrs) {
          *      return should_notify && flurb === floob;
          *  });
          */
-        const should_notify = await api.hook('shouldNotifyOfGroupMessage', null, true);
+        const should_notify = await api.hook('shouldNotifyOfGroupMessage', attrs, true);
         return should_notify;
     }
     return false;