[lib.content-controller] added audio notification POP when receiving another's message on the current channel

This commit is contained in:
xdrm-brackets 2018-04-06 14:29:56 +02:00
parent 09d0f55666
commit 2181bbb317
1 changed files with 4 additions and 0 deletions

View File

@ -396,6 +396,10 @@ export default class ContentController{
new Notification(title, { body: body }); new Notification(title, { body: body });
} }
// 9. If not self on current channel -> notification sound
if( room.messages.length > 0 && room.messages[0].uid !== auth.user.uid && ri === gs.get.content.rid )
AudioManager.pop();
} }