You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In MatrixRoom, in handle_outgoing_message, I can look if I need to send a read marker or not. I need to save the last event id and the last read event id in the struct, this part is ok. But how can I access the matrix client object from there to send the read marker?
Requests need to be executed on the Tokio runtime, the runtime and the client are contained inside a Connection object which abstracts those away.
You'll have to borrow the connection and if one is active, send the request using the connection. You'll probably will want to add a new helper method to the connection.
Take a look at how messages or typing notifications are handled here and here at the connection side.
Like the title says, this would ease the use of other clients.
If I look at how it is done in the python script, a read marker is sent for the last event if:
Sending send receipt or not should be configurable, with default to sending them.
I will try to propose a PR.
The text was updated successfully, but these errors were encountered: