Resolve #7165
This commit is contained in:
parent
65addc8206
commit
49febe1764
2 changed files with 25 additions and 3 deletions
|
|
@ -7,6 +7,7 @@ import { Channel } from '../../models/entities/channel';
|
|||
import { checkHitAntenna } from '@/misc/check-hit-antenna';
|
||||
import { getAntennas } from '@/misc/antenna-cache';
|
||||
import { PackedNote } from '../../models/repositories/note';
|
||||
import { readNotificationByQuery } from '@/server/api/common/read-notification';
|
||||
|
||||
/**
|
||||
* Mark notes as read
|
||||
|
|
@ -96,6 +97,10 @@ export default async function(
|
|||
publishMainStream(userId, 'readAllChannels');
|
||||
}
|
||||
});
|
||||
|
||||
readNotificationByQuery(userId, {
|
||||
noteId: In([...readMentions.map(n => n.id), ...readSpecifiedNotes.map(n => n.id)]),
|
||||
});
|
||||
}
|
||||
|
||||
if (readAntennaNotes.length > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue