mirror of
https://github.com/element-hq/synapse.git
synced 2026-10-23 13:03:28 +00:00
Implement SYWEB-58: Clicking a notification now takes you to that room.
This commit is contained in:
1 parent
2a44558fbd
commit
ed241ba032
2 files changed
+7
-1
No files matched your search
@@ -238,6 +238,12 @@ function(matrixService, $rootScope, $q, $timeout, mPresence) {
|
||||
"body": message,
|
||||
"icon": member ? member.avatar_url : undefined
|
||||
});
|
||||
|
||||
notification.onclick = function() {
|
||||
console.log("notification.onclick() room=" + event.room_id);
|
||||
$rootScope.goToPage('room/' + (event.room_id));
|
||||
};
|
||||
|
||||
$timeout(function() {
|
||||
notification.close();
|
||||
}, 5 * 1000);
|
||||
|
||||
Reference in new issue
Block a user