Use latest user data for mention pills

This commit is contained in:
aringenbach
2022-06-16 17:07:47 +02:00
parent 87915a9e30
commit 4c8bed38c2
24 changed files with 357 additions and 97 deletions
@@ -237,13 +237,11 @@
- (instancetype)initWithEvent:(MXEvent*)event andRoomState:(MXRoomState*)roomState andRoomDataSource:(MXKRoomDataSource*)roomDataSource;
/**
Sets the `MXRoomState` for a buble cell. This allows to adapt the display
of a cell with a different room state than its historical. This won't update critical
flag/status, such as `isEncryptedRoom`.
Refresh avatars and display names (AKA profiles) displayed in the cell if needed.
@param roomState the `MXRoomState` to use for this cell.
@param latestRoomState the latest `MXRoomState` from the data source.
*/
- (void)setRoomState:(MXRoomState *)roomState;
- (void)refreshProfilesIfNeeded:(MXRoomState *)latestRoomState;
/**
Update the event because its sent state changed or it is has been redacted.