mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-27 10:20:27 +01:00
push readAllNotifications as notification when api mark-all-as-read called
This commit is contained in:
parent
32d6a0a0d2
commit
7101e761fa
1 changed files with 2 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
|||
import { publishMainStream } from '@/services/stream';
|
||||
import { pushNotification } from '@/services/push-notification';
|
||||
import define from '../../define';
|
||||
import { Notifications } from '@/models/index';
|
||||
|
||||
|
@ -21,4 +22,5 @@ export default define(meta, async (ps, user) => {
|
|||
|
||||
// 全ての通知を読みましたよというイベントを発行
|
||||
publishMainStream(user.id, 'readAllNotifications');
|
||||
pushNotification(user.id, 'readAllNotifications', undefined);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue