mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-19 23:16:21 +00:00
feat(mentions): richer inbox — filters, date groups, type badge, relative time, per-row actions, highlighted preview
This commit is contained in:
@@ -40,4 +40,12 @@ export const markAllRead = (): void =>
|
||||
emit();
|
||||
};
|
||||
|
||||
export const removeMention = (mentionId: number): void =>
|
||||
{
|
||||
const next = mentions.filter(m => m.mentionId !== mentionId);
|
||||
if(next.length === mentions.length) return;
|
||||
mentions = next;
|
||||
emit();
|
||||
};
|
||||
|
||||
export const resetMentions = (): void => { mentions = []; emit(); };
|
||||
|
||||
Reference in New Issue
Block a user