浏览代码

Pass message attrs to `shouldNotifyOfGroupMessage`

JC Brand 4 年之前
父节点
当前提交
9568d57e5f
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;