Resolve #7165
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user