From 4fdbef04b4ae41e6193d4f4416c83edf91e1bfb7 Mon Sep 17 00:00:00 2001 From: Artémis Date: Mon, 1 Aug 2022 11:13:49 +0200 Subject: [feature] Implemented notification clear (#720) * Implemented notification clear * Added the cache clear mechanism * added multi user check test --- internal/db/notification.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/db/notification.go') diff --git a/internal/db/notification.go b/internal/db/notification.go index d8291ae51..7d8258d93 100644 --- a/internal/db/notification.go +++ b/internal/db/notification.go @@ -32,4 +32,6 @@ type Notification interface { GetNotifications(ctx context.Context, accountID string, limit int, maxID string, sinceID string) ([]*gtsmodel.Notification, Error) // GetNotification returns one notification according to its id. GetNotification(ctx context.Context, id string) (*gtsmodel.Notification, Error) + // ClearNotifications deletes every notification that pertain to the given accountID. + ClearNotifications(ctx context.Context, accountID string) Error } -- cgit v1.2.3