mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-07 04:53:28 +02:00
Add notification.
This commit is contained in:
parent
8b4207d18c
commit
d98ff9cd0a
1 changed files with 10 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue