Merge request #168 introduced a high-level API for the matrix-sdk which allows use to move the matrix-sdk-base::EventHandler to the matrix-sdk. In addition to that I would suggest moving the EventHandler to the room::Common since each event is emitted for a specific room. Additionally, I think we can add an EventHandler to the Client that emits events that happen outside of a room e.g. changes to the user's name and avatar.
Merge request #168 introduced a high-level API for the
matrix-sdkwhich allows use to move thematrix-sdk-base::EventHandlerto thematrix-sdk. In addition to that I would suggest moving theEventHandlerto theroom::Commonsince each event is emitted for a specific room. Additionally, I think we can add anEventHandlerto theClientthat emits events that happen outside of a room e.g. changes to the user's name and avatar.