Pick up currently_active across federation

This commit is contained in:
Erik Johnston 2016-02-23 10:40:11 +00:00
parent 8fe3b450d2
commit 138c405974

View File

@ -522,6 +522,7 @@ class PresenceHandler(BaseHandler):
new_fields["last_active_ts"] = now - last_active_ago
new_fields["status_msg"] = push.get("status_msg", None)
new_fields["currently_active"] = push.get("currently_active", False)
prev_state = yield self.current_state_for_user(user_id)
updates.append(prev_state.copy_and_replace(**new_fields))