mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-30 05:06:58 +02:00
Bug Fix - default room avatar for an empty room should not be your own face
Changes: - If the room has only two members, use the avatar of the second member even if this member is invited. - The plain solid circle (without initial) is used only for an "empty room" without display name (We name "empty room" a room in which the current user is the only active member).
This commit is contained in:
@@ -187,7 +187,7 @@
|
||||
}
|
||||
else if (self.mxCall.room)
|
||||
{
|
||||
return [AvatarGenerator generateAvatarForMatrixItem:self.mxCall.room.roomId withDisplayName:self.mxCall.room.vectorDisplayname size:self.callerImageViewWidthConstraint.constant andFontSize:fontSize];
|
||||
return [AvatarGenerator generateAvatarForMatrixItem:self.mxCall.room.roomId withDisplayName:self.mxCall.room.riotDisplayname size:self.callerImageViewWidthConstraint.constant andFontSize:fontSize];
|
||||
}
|
||||
|
||||
return [UIImage imageNamed:@"placeholder"];
|
||||
@@ -216,7 +216,7 @@
|
||||
}
|
||||
else if (self.mxCall.isConferenceCall)
|
||||
{
|
||||
peerDisplayName = self.mxCall.room.vectorDisplayname;
|
||||
peerDisplayName = self.mxCall.room.riotDisplayname;
|
||||
peerAvatarURL = self.mxCall.room.state.avatar;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user