mx_get_account_data: Get account data

View source: R/account.R

mx_get_account_dataR Documentation

Get account data

Description

Reads a global account-data event for a user, e.g. "m.direct" (the DM room map) or any custom namespaced type.

Usage

mx_get_account_data(session, type, user_id = session$user_id)

Arguments

session

An "mx_session" object.

type

Character. Event type, e.g. "m.direct".

user_id

Character. Defaults to the session's own user.

Value

The account-data content as a list, or NULL when the type has never been set.

Examples

## Not run: 
direct <- mx_get_account_data(s, "m.direct")

## End(Not run)

mx.api documentation built on Sept. 12, 2026, 1:07 a.m.