feat: support for topic in notification
using same topic twice will restore existing notification in that topic if any. this can be useful if you want to remind users about some specific thing over time Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
This commit is contained in:
@@ -10,8 +10,11 @@ type Notification_2 = {
|
||||
title: string;
|
||||
description: string;
|
||||
link: string;
|
||||
topic?: string;
|
||||
created: Date;
|
||||
updated?: Date;
|
||||
read?: Date;
|
||||
done?: Date;
|
||||
saved: boolean;
|
||||
};
|
||||
export { Notification_2 as Notification };
|
||||
|
||||
@@ -24,8 +24,11 @@ export type Notification = {
|
||||
title: string;
|
||||
description: string;
|
||||
link: string;
|
||||
topic?: string;
|
||||
created: Date;
|
||||
updated?: Date;
|
||||
read?: Date;
|
||||
done?: Date;
|
||||
saved: boolean;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user