소스 검색

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;