aboutsummaryrefslogtreecommitdiffstats
path: root/alias-angular/app/js/services.js
diff options
context:
space:
mode:
authorZaran <zaran.krleza@gmail.com>2012-04-18 00:20:16 -0700
committerZaran <zaran.krleza@gmail.com>2012-04-18 00:20:16 -0700
commit4dd22b71fc8198d7c8e72d6e0c41cb12298b8133 (patch)
treea8e47be3ddf6823e3ef3bb5f191b65f2172bdbad /alias-angular/app/js/services.js
parentfe62183cd914a7834c6d6a94d487e2e13e212251 (diff)
downloadalias-4dd22b71fc8198d7c8e72d6e0c41cb12298b8133.tar.gz
Fix the presence bug
the callback needs to return true so that it can be reused this must be done at the right place.
Diffstat (limited to 'alias-angular/app/js/services.js')
-rw-r--r--alias-angular/app/js/services.js1
1 files changed, 1 insertions, 0 deletions
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) {