mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-12-01 12:26:26 -05:00
show notification for incoming calls
This commit is contained in:
parent
73b9639875
commit
cac6803d18
2 changed files with 14 additions and 0 deletions
|
|
@ -1569,6 +1569,17 @@
|
|||
this.getConfig();
|
||||
break;
|
||||
}
|
||||
case 'incoming_audio_call': {
|
||||
Notification.requestPermission().then((result) => {
|
||||
if(result === "granted"){
|
||||
new window.Notification("Incoming Call", {
|
||||
body: "Someone is calling you.",
|
||||
tag: "new_audio_call", // only ever show one notification at a time
|
||||
});
|
||||
}
|
||||
});
|
||||
break;
|
||||
}
|
||||
case 'lxmf.delivery': {
|
||||
|
||||
// add inbound message to ui
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue