diff --git a/src/RoomInfoListItem.cpp b/src/RoomInfoListItem.cpp index fa63a36bd5e073defe570a6223cfd30ae7c5a9b8..cc5f5776f4ed89b1a018eec6c4e51900127cb4b3 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 9361a20b8019cbf5bfd96070d0386e5d71754a54..e609f4d889d3e10aa13c450584ee01be5aa5475c 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_; }