matrix-org / gomatrix

A Golang Matrix client
Apache License 2.0
285 stars 53 forks source link

Handle leave events #21

Closed rxl881 closed 7 years ago

rxl881 commented 7 years ago

Leave events are currently unhandled by the SDK.

It is useful for bots to have access to leave events so that they can clean up state etc. after having been kicked from a room.

@Kegsay can you please have a look at the following and let me know if it makes sense (specifically sync.go L78, using the timeline events in this way)? Thanks.

kegsay commented 7 years ago

Otherwise LGTM, merge after fixing my comments please, I don't need to see this one again.

rxl881 commented 7 years ago

Great. Thanks @Kegsay willdo.