From d98ff9cd0a963a1d03e0d4fe580837780afc6f71 Mon Sep 17 00:00:00 2001 From: armored-dragon Date: Sun, 27 Oct 2024 22:53:29 -0500 Subject: [PATCH] Add notification. --- scripts/communityScripts/armored-chat/armored_chat.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/communityScripts/armored-chat/armored_chat.js b/scripts/communityScripts/armored-chat/armored_chat.js index fe66da7a54..0d0be6773f 100644 --- a/scripts/communityScripts/armored-chat/armored_chat.js +++ b/scripts/communityScripts/armored-chat/armored_chat.js @@ -115,6 +115,7 @@ // Update qml view of to new message _emitEvent({ type: "show_message", ...message }); + // Show new message on screen Messages.sendLocalMessage( "Floof-Notif", JSON.stringify({ @@ -228,6 +229,15 @@ let message = {}; message.message = `${displayName} ${type}`; + // Show new message on screen + Messages.sendLocalMessage( + "Floof-Notif", + JSON.stringify({ + sender: displayName, + text: type, + }) + ); + _emitEvent({ type: "notification", ...message }); }, 1500); }