Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement helpers for fetching user presence status #29

Merged
merged 2 commits into from
Mar 12, 2021

Conversation

babolivier
Copy link
Contributor

This PR adds the functions GetPresence and GetOwnPresence to the Client struct, which implement making GET /_matrix/client/r0/presence/{userId}/status for the given MXID or the client's MXID, respectively.

client.go Outdated Show resolved Hide resolved
client.go Outdated Show resolved Hide resolved
responses.go Outdated Show resolved Hide resolved
Co-authored-by: Tulir Asokan <tulir@maunium.net>
@tulir tulir merged commit a6234b7 into mautrix:master Mar 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants