From d358119ae63091a1e4d82ffdfe653e06e2d12043 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 11 Jul 2020 14:25:44 +0200 Subject: [PATCH] Improve previous method --- src/controllers/notifications_controller.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controllers/notifications_controller.rs b/src/controllers/notifications_controller.rs index 8702725..8807e0c 100644 --- a/src/controllers/notifications_controller.rs +++ b/src/controllers/notifications_controller.rs @@ -65,6 +65,7 @@ pub fn mark_seen(r: &mut HttpRequestHandler) -> RequestResult { // notifications if delete_similar { notif.id = None; + notif.from_user_id = None; } notifications_helper::delete(¬if)?;