Send client information for initial presence and process time differential

(imported from commit 99a51b7cc8b6c51c4e82757a984d07603b2980e3)
This commit is contained in:
Leo Franchi
2013-04-04 18:13:03 -04:00
parent 5d4b2305fe
commit 302cfcd48c
6 changed files with 68 additions and 47 deletions

View File

@@ -61,7 +61,7 @@ $(function () {
"full_name": "Humbug Feedback Bot"}]);
$.each(page_params.initial_presences, function (email, presence) {
activity.set_user_status(email, presence.status);
activity.set_user_status(email, presence);
});
});
@@ -694,7 +694,7 @@ function get_updates(options) {
}
break;
case 'presence':
activity.set_user_status(event.email, event.presence.status);
activity.set_user_status(event.email, event.presence);
break;
}
});