latest main of matrix sdk has implemented a new parameter in the class Client called shouldReplaceRoomLastEvent that receives 2 parameters: a current room last event, and a new current room last event and returns a boolean. You can implement custom logic on whether or not the new event should replace the current event.
latest main of matrix sdk has implemented a new parameter in the class
Client
calledshouldReplaceRoomLastEvent
that receives 2 parameters: a current room last event, and a new current room last event and returns a boolean. You can implement custom logic on whether or not the new event should replace the current event.