diff --git a/webpack/lib/content-controller.js b/webpack/lib/content-controller.js index c00592a..42c343d 100644 --- a/webpack/lib/content-controller.js +++ b/webpack/lib/content-controller.js @@ -213,8 +213,13 @@ export default class ContentController{ } /* (7) Notification API -> if not current channel */ - if( room.messages.length > 0 && ri !== gs.get.content.rid ) - new Notification(`${room.messages.length} new messages in #${room.name}`); + if( room.messages.length > 0 && ri !== gs.get.content.rid ){ + + let title = `Room #${room.name}`; + let body = `${room.messages.length} new messages`; + new Notification(title, { body: body }); + + } }