summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmi Simpson <emi@alchemi.dev>2020-03-15 17:05:21 -0400
committerEmi Simpson <emi@alchemi.dev>2020-03-15 17:05:21 -0400
commit5c308b1caffc57d28d3a1ae5a61cfe3c50527358 (patch)
tree0251df81da3ae60f6505da45748c74f955a3330b
parentUpdated translations (diff)
downloadnheko-5c308b1caffc57d28d3a1ae5a61cfe3c50527358.tar.xz
Fixed bug caused by me forgetting what types im using (invites appearing at the bottom of the list instead of the top when priority sorting was off)
-rw-r--r--src/RoomInfoListItem.cpp2
-rw-r--r--src/RoomInfoListItem.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/RoomInfoListItem.cpp b/src/RoomInfoListItem.cpp

index fa63a36b..cc5f5776 100644 --- a/src/RoomInfoListItem.cpp +++ b/src/RoomInfoListItem.cpp
@@ -338,7 +338,7 @@ enum NotificationImportance : short Invite = 3 }; -unsigned short int +short int RoomInfoListItem::calculateImportance() const { // Returns the degree of importance of the unread messages in the room. diff --git a/src/RoomInfoListItem.h b/src/RoomInfoListItem.h
index 9361a20b..e609f4d8 100644 --- a/src/RoomInfoListItem.h +++ b/src/RoomInfoListItem.h
@@ -72,7 +72,7 @@ public: void updateUnreadMessageCount(int count, int highlightedCount); void clearUnreadMessageCount() { updateUnreadMessageCount(0, 0); }; - unsigned short int calculateImportance() const; + short int calculateImportance() const; QString roomId() { return roomId_; } bool isPressed() const { return isPressed_; }