diff --git a/ui/StatusQ/src/StatusQ/Components/StatusChatList.qml b/ui/StatusQ/src/StatusQ/Components/StatusChatList.qml index f96acc868d..07e7e2fdba 100644 --- a/ui/StatusQ/src/StatusQ/Components/StatusChatList.qml +++ b/ui/StatusQ/src/StatusQ/Components/StatusChatList.qml @@ -10,9 +10,12 @@ Column { spacing: 4 + property string categoryId: "" property string selectedChatId: "" property alias chatListItems: statusChatListItems + property var filterFn + signal chatItemSelected(string id) signal chatItemUnmuted(string id) @@ -33,6 +36,12 @@ Column { onClicked: statusChatList.chatItemSelected(model.chatId) onUnmute: statusChatList.chatItemUnmuted(model.chatId) + visible: { + if (!!statusChatList.filterFn) { + return statusChatList.filterFn(model, statusChatList.categoryId) + } + return true + } } } }