Skip to content

Commit

Permalink
feat(channel): show channels with unread messages even if collapsed (#…
Browse files Browse the repository at this point in the history
…17017)

Fixes #17016

Sets the channel as visible when it has unread messages, but not muted, or has a notification (reply or mention) or it's active, even when collapsed.
  • Loading branch information
jrainville authored Jan 22, 2025
1 parent b6bc5d1 commit d8b94f5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ui/StatusQ/src/StatusQ/Components/StatusChatList.qml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,13 @@ Item {
objectName: model.name
Layout.fillWidth: true
height: visible ? (statusChatListItem.implicitHeight + 4) /*spacing between non-collapsed items*/ : 0
visible: (!draggableItem.isCategory && model.categoryOpened)
visible: !draggableItem.isCategory &&
(
model.active ||
(!model.muted && model.hasUnreadMessages) || // Show channel if it has unread messages but not muted
model.notificationsCount > 0 || // unless it's a notification (mentions, replies)
model.categoryOpened
)
originalOrder: model.position
chatId: model.itemId
categoryId: model.categoryId
Expand Down

0 comments on commit d8b94f5

Please sign in to comment.