From: Art Cancro Date: Thu, 26 Jan 2023 22:03:15 +0000 (-0500) Subject: INBOX _always_ appears at the top. X-Git-Tag: v973~38 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=2cc50f1b5d8281fa356671b3311d56889c50b89d;p=citadel.git INBOX _always_ appears at the top. --- 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;