def should_notify(old_state, new_state):
    if old_state.status_msg != new_state.status_msg:
        return True

    if old_state.state == PresenceState.ONLINE:
        if new_state.state != PresenceState.ONLINE:
            # Always notify for online -> anything
            return True

        if new_state.currently_active != old_state.currently_active:
            return True

    if new_state.last_active_ts - old_state.last_active_ts > LAST_ACTIVE_GRANULARITY:
        # Always notify for a transition where last active gets bumped.
        return True

    if old_state.state != new_state.state:
        return True

    return False
Remove the given parameter completely from the Content-Type header.
dataset/ETHPy150Open matrix-org/synapse/synapse/handlers/presence.py/should_notify--crossover with--dataset/ETHPy150Open kleientertainment/ds_mod_tools/pkg/win32/Python27/Lib/email/message.py/Message.del_param