[lib.content-controller] added audio notification POP when receiving another's message on the current channel
This commit is contained in:
parent
09d0f55666
commit
2181bbb317
|
@ -396,6 +396,10 @@ export default class ContentController{
|
|||
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();
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue