From 2cc50f1b5d8281fa356671b3311d56889c50b89d Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Thu, 26 Jan 2023 17:03:15 -0500 Subject: [PATCH] INBOX _always_ appears at the top. --- webcit-ng/static/js/mail_folder_list.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webcit-ng/static/js/mail_folder_list.js b/webcit-ng/static/js/mail_folder_list.js index ce11fbacd..02007f457 100644 --- a/webcit-ng/static/js/mail_folder_list.js +++ b/webcit-ng/static/js/mail_folder_list.js @@ -38,6 +38,8 @@ function render_mail_folder_list(roomlist_json) { roomlist_json.sort(function(a, b) { if (a.floor > b.floor) return 1; if (a.floor < b.floor) return -1; + if (a.name == "Mail") return -1; + if (b.name == "Mail") return 1; if (a.rorder > b.rorder) return 1; if (a.rorder < b.rorder) return -1; return 0; -- 2.39.2