Commit 7d94c712 authored by Christoph Scholz's avatar Christoph Scholz Committed by JC Brand

notification is now clickable

parent c15b4b3a
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
- #1792: Fix: modals don't have scrollbars - #1792: Fix: modals don't have scrollbars
- #1796: Don't show "back" arrow navigation (on mobile) in the chat header when in `singleton` mode - #1796: Don't show "back" arrow navigation (on mobile) in the chat header when in `singleton` mode
- #1821: Errors caused by malformed URLs are now handled - #1821: Errors caused by malformed URLs are now handled
- #1819: Click on a desktop notification now opens corresponding chat.
### Breaking changes ### Breaking changes
......
...@@ -183,6 +183,13 @@ converse.plugins.add('converse-notification', { ...@@ -183,6 +183,13 @@ converse.plugins.add('converse-notification', {
if (_converse.notification_delay) { if (_converse.notification_delay) {
setTimeout(n.close.bind(n), _converse.notification_delay); setTimeout(n.close.bind(n), _converse.notification_delay);
} }
n.onclick = function (event) {
event.preventDefault();
window.focus();
const chat = _converse.chatboxes.get(from_jid);
chat.maybeShow(true);
}
n.onclick.bind(_converse);
}; };
_converse.showChatStateNotification = function (contact) { _converse.showChatStateNotification = function (contact) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment