From 298bbbb52ca9d6d624b99bf5184b1352ba1c6e0f Mon Sep 17 00:00:00 2001 From: armored-dragon Date: Tue, 29 Oct 2024 15:25:45 -0500 Subject: [PATCH] Fix type on sourceComponent. --- scripts/communityScripts/armored-chat/armored_chat.qml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/communityScripts/armored-chat/armored_chat.qml b/scripts/communityScripts/armored-chat/armored_chat.qml index 48ee5cd518..36939cfcb2 100644 --- a/scripts/communityScripts/armored-chat/armored_chat.qml +++ b/scripts/communityScripts/armored-chat/armored_chat.qml @@ -166,7 +166,14 @@ Rectangle { property string delegateUsername: model.username property string delegateDate: model.date - sourceComponent: template_chat_message + sourceComponent: { + if (model.type === "chat") { + return template_chat_message; + } else if (model.type === "notification") { + return template_notification; + } + } + } } }