diff options
author | Emi Simpson <emi@alchemi.dev> | 2020-03-15 17:05:21 -0400 |
---|---|---|
committer | Emi Simpson <emi@alchemi.dev> | 2020-03-15 17:05:21 -0400 |
commit | 5c308b1caffc57d28d3a1ae5a61cfe3c50527358 (patch) | |
tree | 0251df81da3ae60f6505da45748c74f955a3330b | |
parent | Updated translations (diff) | |
download | nheko-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.cpp | 2 | ||||
-rw-r--r-- | src/RoomInfoListItem.h | 2 |
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_; } |