From 667b54503d58aa664c0aff8b4da82d35b42155f6 Mon Sep 17 00:00:00 2001 From: Alessio Date: Mon, 2 Sep 2024 17:06:36 -0700 Subject: [PATCH] Fix lint error --- internal/webserver/handler_login.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/webserver/handler_login.go b/internal/webserver/handler_login.go index 1ea7ff3..c945770 100644 --- a/internal/webserver/handler_login.go +++ b/internal/webserver/handler_login.go @@ -118,7 +118,7 @@ func (app *Application) ChangeSession(w http.ResponseWriter, r *http.Request) { app.error_400_with_message(w, r, fmt.Sprintf("User not in database: %s", form.AccountName)) return } - app.LastReadNotificationSortIndex = 0 // Clear unread notifications + app.LastReadNotificationSortIndex = 0 // Clear unread notifications go app.background_notifications_scrape() // Update notifications info in background (avoid latency when switching users) data := NotificationBubbles{ NumMessageNotifications: len(app.Profile.GetUnreadConversations(app.ActiveUser.ID)),