Explorar el Código

Pass message attrs to `shouldNotifyOfGroupMessage`

JC Brand hace 4 años
padre
commit
9568d57e5f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/plugins/notifications/utils.js

+ 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;