synapse/storage/presence.py
def default(cls, user_id):
        """Returns a default presence state.
        """
        return cls(
            user_id=user_id,
            state=PresenceState.OFFLINE,
            last_active_ts=0,
            last_federation_update_ts=0,
            last_user_sync_ts=0,
            status_msg=None,
            currently_active=False,
        )
Returns a default presence state.
        
Returns a default presence state.
Returns a default presence state .
def default(cls, user_id):
        return cls(
            user_id=user_id,
            state=PresenceState.OFFLINE,
            last_active_ts=0,
            last_federation_update_ts=0,
            last_user_sync_ts=0,
            status_msg=None,
            currently_active=False,
        )
def default ( cls , user_id ) : return cls ( user_id = user_id , state = PresenceState . OFFLINE , last_active_ts = 0 , last_federation_update_ts = 0 , last_user_sync_ts = 0 , status_msg = None , currently_active = False , )
Returns a default presence state.
Returns a default presence state .
"""Returns a default presence state.
        """
cls
user_id