Browse Source

Bugfix. contact is a map, not a Backbone.Model

JC Brand 9 năm trước cách đây
mục cha
commit
1f2840035b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/converse-notification.js

+ 1 - 1
src/converse-notification.js

@@ -133,7 +133,7 @@
                 /* Creates an HTML5 Notification to inform of a change in a
                  * contact's chat state.
                  */
-                if (_.contains(converse.chatstate_notification_blacklist, contact.get('jid'))) {
+                if (_.contains(converse.chatstate_notification_blacklist, contact.jid)) {
                     // Don't notify if the user is being ignored.
                     return;
                 }