'We\'ve seen the user do something that indicates they\'re interacting
with the app.'

@defer.inlineCallbacks
def bump_presence_active_time(self, user):

    user_id = user.to_string()
    bump_active_time_counter.inc()
    prev_state = (yield self.current_state_for_user(user_id))
    new_fields = {'last_active_ts': self.clock.time_msec()}
    if (prev_state.state == PresenceState.UNAVAILABLE):
        new_fields['state'] = PresenceState.ONLINE
    (yield self._update_states([prev_state.copy_and_replace(**new_fields)]))
