Add notification.

This commit is contained in:
armored-dragon 2024-10-27 22:53:29 -05:00
parent 8b4207d18c
commit d98ff9cd0a
No known key found for this signature in database
GPG key ID: C7207ACC3382AD8B

View file

@ -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);
}