From ce8603b0e171e852031f33e0e8891be960f6aa06 Mon Sep 17 00:00:00 2001 From: Sale Djenic Date: Thu, 9 Dec 2021 13:06:48 +0100 Subject: [PATCH] fix(StatusChatList): unexisting property name for chat item fixed `StatusChatList` component is able to display: - chats for Chat section - channels for Community section - channels from a category from Community section in cases 1. and 2. displayed items do not have `parentItemId` property and it's not used in these cases. This commit fixes that console error. --- ui/StatusQ/src/StatusQ/Components/StatusChatList.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/StatusQ/src/StatusQ/Components/StatusChatList.qml b/ui/StatusQ/src/StatusQ/Components/StatusChatList.qml index 5823dfcff2..144ef2076a 100644 --- a/ui/StatusQ/src/StatusQ/Components/StatusChatList.qml +++ b/ui/StatusQ/src/StatusQ/Components/StatusChatList.qml @@ -95,7 +95,7 @@ Column { opacity: dragSensor.active ? 0.0 : 1.0 originalOrder: model.position chatId: model.itemId - categoryId: model.parentItemId + categoryId: model.parentItemId? model.parentItemId : "" name: model.name type: !!model.type ? model.type : StatusChatListItem.Type.CommunityChat muted: model.muted