matrix-appservice-bridge
    Preparing search index...

    Interface ActivityTrackerOpts

    interface ActivityTrackerOpts {
        defaultOnline: boolean;
        onLastActiveTimeUpdated?: (
            userId: string,
            ts: number,
        ) => void | Promise<void>;
        serverName: string;
        usePresence?: boolean;
    }
    Index

    Properties

    defaultOnline: boolean

    Should the tracker assume offline or online if it doesn't have enough information.

    onLastActiveTimeUpdated?: (userId: string, ts: number) => void | Promise<void>

    Run a function when the last active time for a user gets updated

    serverName: string

    Matrix server name. Used for determining local and remote users.

    matrix.org
    
    usePresence?: boolean

    Should presence be used. Set to false if the homeserver has presence disabled.