From 4dd22b71fc8198d7c8e72d6e0c41cb12298b8133 Mon Sep 17 00:00:00 2001 From: Zaran Date: Wed, 18 Apr 2012 00:20:16 -0700 Subject: Fix the presence bug the callback needs to return true so that it can be reused this must be done at the right place. --- alias-angular/app/js/services.js | 1 + 1 file changed, 1 insertion(+) (limited to 'alias-angular/app/js/services.js') diff --git a/alias-angular/app/js/services.js b/alias-angular/app/js/services.js index 68e1537..9cfeb81 100644 --- a/alias-angular/app/js/services.js +++ b/alias-angular/app/js/services.js @@ -16,6 +16,7 @@ angular.module('Alias.services', [], function($provide) { addHandler: function(callback, name) { connection.addHandler(function(stanza){ $rootScope.$apply(callback(stanza)); + return true; }, null, name, null, null, null, null); }, send: function(stanza) { -- cgit v1.2.3-70-g09d2