2
0
Эх сурвалжийг харах

The notification option wasn't being used consistently

JC Brand 8 жил өмнө
parent
commit
61568aca32

+ 2 - 1
docs/CHANGES.md

@@ -20,9 +20,10 @@
 - Allow JIDs not on the roster to be invited to a chatroom. [jcbrand]
 - #770 Allow setting contact attrs on chats.open [Ape]
 
-## 2.0.7 (2017-02-14)
+## 2.0.7 (2017-02-15)
 - Bugfix. 'TypeError: this.sendConfiguration(...).then is not a function' when an instant room is created. [jcbrand]
 - Ensure consistent behavior from `show_controlbox_by_default` [jcbrand]
+- #694 The `notification_option` wasn't being used consistently. [jcbrand]
 
 ## 2.0.6 (2017-02-13)
 - Escape user-generated input to prevent JS-injection attacks. (Thanks to SamWhited) [jcbrand]

+ 3 - 3
src/converse-notification.js

@@ -182,7 +182,7 @@
                 var n = new Notification(contact.fullname, {
                         body: message,
                         lang: _converse.i18n.locale_data.converse[""].lang,
-                        icon: 'logo/conversejs.png'
+                        icon: _converse.notification_icon
                     });
                 setTimeout(n.close.bind(n), 5000);
             };
@@ -191,7 +191,7 @@
                 var n = new Notification(contact.fullname, {
                         body: __('wants to be your contact'),
                         lang: _converse.i18n.locale_data.converse[""].lang,
-                        icon: 'logo/conversejs.png'
+                        icon: _converse.notification_icon
                     });
                 setTimeout(n.close.bind(n), 5000);
             };
@@ -201,7 +201,7 @@
                     var n = new Notification(data.subject, {
                             body: data.message,
                             lang: _converse.i18n.locale_data.converse[""].lang,
-                            icon: 'logo/conversejs.png'
+                            icon: _converse.notification_icon
                         });
                     setTimeout(n.close.bind(n), 5000);
                 }