From 4a5414975d6b9c6502488e7c0d4c5674b81c1e3a Mon Sep 17 00:00:00 2001
From: Nicolas Werner <nicolas.werner@hotmail.de>
Date: Fri, 25 Jun 2021 11:26:39 +0200
Subject: [PATCH] fix sort by unread not getting persisted

---
 src/UserSettingsPage.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/UserSettingsPage.cpp b/src/UserSettingsPage.cpp
index 9b9065552..6c0d8728f 100644
--- a/src/UserSettingsPage.cpp
+++ b/src/UserSettingsPage.cpp
@@ -613,6 +613,7 @@ UserSettings::save()
         settings.setValue("mobile_mode", mobileMode_);
         settings.setValue("font_size", baseFontSize_);
         settings.setValue("typing_notifications", typingNotifications_);
+        settings.setValue("sort_by_unread", sortByImportance_);
         settings.setValue("minor_events", sortByImportance_);
         settings.setValue("read_receipts", readReceipts_);
         settings.setValue("group_view", groupView_);
-- 
GitLab