Rename profile as userAvatarAndName

This commit is contained in:
Arnaud Ringenbach
2022-03-04 15:48:59 +01:00
committed by aringenbach
parent fb95e6fd78
commit cfeae5bc64
8 changed files with 30 additions and 24 deletions
@@ -58,8 +58,11 @@
targetId = [event.type isEqualToString:kMXEventTypeStringRoomMember] ? event.stateKey : nil;
roomId = roomDataSource.roomId;
MXRoomState *profileRoomState = RiotSettings.shared.roomScreenUseOnlyLatestProfiles ? roomDataSource.roomState : roomState;
[self setRoomState:profileRoomState];
// If `roomScreenUseOnlyLatestUserAvatarAndName`is enabled, the avatar and name are
// displayed from the latest room state perspective rather than the historical.
MXRoomState *latestRoomState = roomDataSource.roomState;
MXRoomState *displayRoomState = RiotSettings.shared.roomScreenUseOnlyLatestUserAvatarAndName ? latestRoomState : roomState;
[self setRoomState:displayRoomState];
senderAvatarPlaceholder = nil;
targetAvatarPlaceholder = nil;