mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 00:24:43 +02:00
Rename profile as userAvatarAndName
This commit is contained in:
committed by
aringenbach
parent
fb95e6fd78
commit
cfeae5bc64
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user