We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Code snippet:
syncer.OnEventType(event.StateMember, func(source mautrix.EventSource, evt *event.Event) { if evt.Content.AsMember().Membership == event.MembershipJoin { fmt.Println(client.GetDeviceInfo(id.DeviceID(evt.Sender))) } ...
Output: <nil> failed to GET /_matrix/client/r0/devices/@user:homeserver.tld: M_NOT_FOUND (HTTP 404): Not found
<nil> failed to GET /_matrix/client/r0/devices/@user:homeserver.tld: M_NOT_FOUND (HTTP 404): Not found
The text was updated successfully, but these errors were encountered:
GetDeviceInfo gets your own device info and it takes a device ID (as the parameter type suggests), not a user ID.
QueryKeys is for fetching other users devices (https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3keysquery)
Sorry, something went wrong.
No branches or pull requests
Code snippet:
Output:
<nil> failed to GET /_matrix/client/r0/devices/@user:homeserver.tld: M_NOT_FOUND (HTTP 404): Not found
The text was updated successfully, but these errors were encountered: