def update_user_presence(user_profile: UserProfile, client: Client, log_time: datetime.datetime, status: int, new_user_input: bool) -> None:
    event = {'user_profile_id': user_profile.id, 'status': status, 'time': datetime_to_timestamp(log_time), 'client': client.name}
    queue_json_publish('user_presence', event)
    if new_user_input:
        update_user_activity_interval(user_profile, log_time)
def update_user_presence(user_profile: UserProfile, client: Client, log_time: datetime.datetime, status: int, new_user_input: bool) -> None:
    event = {'user_profile_id': user_profile.id, 'status': status, 'time': datetime_to_timestamp(log_time), 'client': client.name}
    queue_json_publish('user_presence', event)
    if new_user_input:
        update_user_activity_interval(user_profile, log_time)