From 3dea0d280637606ec7e6aa77b2343548b8fdcb29 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Thu, 18 Sep 2014 16:17:29 +0100 Subject: [PATCH] undefined is empty. Fixed bug where empty bingWords with old accounts which hadn't logged in didn't send notifications. --- webclient/components/matrix/event-handler-service.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webclient/components/matrix/event-handler-service.js b/webclient/components/matrix/event-handler-service.js index 321054f90..c7be65720 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; }