Revamp refreshProfiles as setRoomState

This commit is contained in:
Arnaud Ringenbach
2022-03-03 11:19:09 +01:00
committed by aringenbach
parent 4eafe7fd9a
commit 1f59ed74e7
3 changed files with 12 additions and 9 deletions
@@ -232,9 +232,13 @@
- (instancetype)initWithEvent:(MXEvent*)event andRoomState:(MXRoomState*)roomState andRoomDataSource:(MXKRoomDataSource*)roomDataSource;
/**
Refreshes the avatar and display name if needed. Should be used only if `roomScreenUseOnlyLatestProfiles` is enabled.
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`.
@param roomState the `MXRoomState` to use for this cell.
*/
- (void)refreshProfile;
- (void)setRoomState:(MXRoomState *)roomState;
/**
Update the event because its sent state changed or it is has been redacted.