Prioritize "low priority" over "direct chat" in roomList categories
There's no exact right or wrong here, but if a room was explicitly marked as "low priority", we should honor this tag. Fixes a slight inconsistency with the implementation in Element Fixes #357
This commit is contained in:
@@ -346,12 +346,12 @@ QVariant RoomListModel::data(const QModelIndex &index, int role) const
|
|||||||
if (room->isFavourite()) {
|
if (room->isFavourite()) {
|
||||||
return RoomType::Favorite;
|
return RoomType::Favorite;
|
||||||
}
|
}
|
||||||
if (room->isDirectChat()) {
|
|
||||||
return RoomType::Direct;
|
|
||||||
}
|
|
||||||
if (room->isLowPriority()) {
|
if (room->isLowPriority()) {
|
||||||
return RoomType::Deprioritized;
|
return RoomType::Deprioritized;
|
||||||
}
|
}
|
||||||
|
if (room->isDirectChat()) {
|
||||||
|
return RoomType::Direct;
|
||||||
|
}
|
||||||
return RoomType::Normal;
|
return RoomType::Normal;
|
||||||
}
|
}
|
||||||
if (role == UnreadCountRole) {
|
if (role == UnreadCountRole) {
|
||||||
|
|||||||
Reference in New Issue
Block a user