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
@@ -48,9 +48,12 @@ static NSAttributedString *messageSeparator = nil;
|
||||
}
|
||||
|
||||
// Check sender information
|
||||
MXRoomState *profileRoomState = RiotSettings.shared.roomScreenUseOnlyLatestProfiles ? roomDataSource.roomState : roomState;
|
||||
NSString *eventSenderName = [roomDataSource.eventFormatter senderDisplayNameForEvent:event withRoomState:profileRoomState];
|
||||
NSString *eventSenderAvatar = [roomDataSource.eventFormatter senderAvatarUrlForEvent:event withRoomState: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;
|
||||
NSString *eventSenderName = [roomDataSource.eventFormatter senderDisplayNameForEvent:event withRoomState:displayRoomState];
|
||||
NSString *eventSenderAvatar = [roomDataSource.eventFormatter senderAvatarUrlForEvent:event withRoomState:displayRoomState];
|
||||
if ((self.senderDisplayName || eventSenderName) &&
|
||||
([self.senderDisplayName isEqualToString:eventSenderName] == NO))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user