@@ -37,6 +37,7 @@ interface ICategoryIndex {
37
37
// comments! Check the usage of Category carefully to figure out what needs changing
38
38
// if you're going to change this array's order.
39
39
const CATEGORY_ORDER = [
40
+ NotificationColor . Unsent ,
40
41
NotificationColor . Red ,
41
42
NotificationColor . Grey ,
42
43
NotificationColor . Bold ,
@@ -50,9 +51,10 @@ const CATEGORY_ORDER = [
50
51
* interfere with this algorithm, however manual ordering does.
51
52
*
52
53
* The importance of a room is defined by the kind of notifications, if any, are
53
- * present on the room. These are classified internally as Red, Grey, Bold, and
54
- * Idle. Red rooms have mentions, grey have unread messages, bold is a less noisy
55
- * version of grey, and idle means all activity has been seen by the user.
54
+ * present on the room. These are classified internally as Unsent, Red, Grey,
55
+ * Bold, and Idle. 'Unsent' rooms have unsent messages, Red rooms have mentions,
56
+ * grey have unread messages, bold is a less noisy version of grey, and idle
57
+ * means all activity has been seen by the user.
56
58
*
57
59
* The algorithm works by monitoring all room changes, including new messages in
58
60
* tracked rooms, to determine if it needs a new category or different placement
@@ -74,6 +76,7 @@ export class ImportanceAlgorithm extends OrderingAlgorithm {
74
76
// noinspection JSMethodCanBeStatic
75
77
private categorizeRooms ( rooms : Room [ ] ) : ICategorizedRoomMap {
76
78
const map : ICategorizedRoomMap = {
79
+ [ NotificationColor . Unsent ] : [ ] ,
77
80
[ NotificationColor . Red ] : [ ] ,
78
81
[ NotificationColor . Grey ] : [ ] ,
79
82
[ NotificationColor . Bold ] : [ ] ,
0 commit comments