Room member details: Removed the "(admin)" string as we now show a sheriff badge on them

This commit is contained in:
manuroe
2016-04-28 14:43:57 +02:00
parent 339a375100
commit 32ee933d95
2 changed files with 0 additions and 19 deletions
@@ -330,16 +330,7 @@
if (mxMember.membership == MXMembershipJoin || mxMember.membership == MXMembershipInvite)
{
// The user is in this room
// Check whether user is admin
MXRoomPowerLevels *powerLevels = [self.mxRoom.state powerLevels];
BOOL isAdmin = ([powerLevels powerLevelOfUserWithUserID:userId] >= kVectorRoomAdminLevel);
NSString *displayName = NSLocalizedStringFromTable(@"you", @"Vector", nil);
if (isAdmin)
{
displayName = [NSString stringWithFormat:NSLocalizedStringFromTable(@"room_participants_admin_name", @"Vector", nil), displayName];
}
userContact = [[Contact alloc] initMatrixContactWithDisplayName:displayName andMatrixID:userId];
userContact.mxMember = [self.mxRoom.state memberWithUserId:userId];
@@ -365,10 +356,6 @@
// Add this member after checking his status
if (mxMember.membership == MXMembershipJoin || mxMember.membership == MXMembershipInvite)
{
// Check whether this member is admin
MXRoomPowerLevels *powerLevels = [self.mxRoom.state powerLevels];
BOOL isAdmin = ([powerLevels powerLevelOfUserWithUserID:mxMember.userId] >= kVectorRoomAdminLevel);
// Prepare the display name of this member
NSString *displayName = mxMember.displayname;
if (displayName.length == 0)
@@ -385,11 +372,6 @@
}
}
if (isAdmin)
{
displayName = [NSString stringWithFormat:NSLocalizedStringFromTable(@"room_participants_admin_name", @"Vector", nil), displayName];
}
// Create the contact related to this member
Contact *contact = [[Contact alloc] initMatrixContactWithDisplayName:displayName andMatrixID:mxMember.userId];
contact.mxMember = mxMember;