summary refs log tree commit diff
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2014-09-18 16:17:29 +0100
committerKegan Dougal <kegan@matrix.org>2014-09-18 16:17:29 +0100
commit3dea0d280637606ec7e6aa77b2343548b8fdcb29 (patch)
treedcbe479bc900d0294b7ada5c230936e0674a8e02
parentBump changelog and versions (diff)
downloadsynapse-3dea0d280637606ec7e6aa77b2343548b8fdcb29.tar.xz
undefined is empty. Fixed bug where empty bingWords with old accounts which hadn't logged in didn't send notifications.
-rw-r--r--webclient/components/matrix/event-handler-service.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/webclient/components/matrix/event-handler-service.js b/webclient/components/matrix/event-handler-service.js
index 321054f904..c7be65720a 100644
--- a/webclient/components/matrix/event-handler-service.js
+++ b/webclient/components/matrix/event-handler-service.js
@@ -189,7 +189,7 @@ function(matrixService, $rootScope, $q, $timeout, mPresence) {
                 
                 // always bing if there are 0 bing words... apparently.
                 var bingWords = matrixService.config().bingWords;
-                if (bingWords && bingWords.length === 0) {
+                if (bingWords === undefined || bingWords.length === 0) {
                     shouldBing = true;
                 }