Feature/2792 function accounts s1

This commit is contained in:
Frank Rotermund
2022-05-30 15:54:26 +00:00
parent 77e4648f24
commit 8ce76b722d
16 changed files with 459 additions and 9 deletions
@@ -60,8 +60,11 @@
id kThemeServiceDidChangeThemeNotificationObserver;
RoomParticipantsInviteCoordinatorBridgePresenter *invitePresenter;
}
@property (nonatomic, strong) UserLabelDefaultService* bwiUserLabelService;
@end
@implementation RoomParticipantsViewController
@@ -472,6 +475,9 @@
self.searchBarHeader.hidden = YES;
}
self.bwiUserLabelService = [[UserLabelDefaultService alloc] init];
[self.bwiUserLabelService setRoom:self.mxRoom];
// Refresh the members list.
[self refreshParticipantsFromRoomMembers];
@@ -1067,6 +1073,14 @@
{
participantCell.contactDisplayNameLabel.text = [roomState.members memberName:contact.mxMember.userId];
}
if (BwiBuildSettings.bwiUserLabelsParticipantsVisible) {
contact.bwiUserLabel = [self.bwiUserLabelService getUserLabelWithUser:contact.mxMember.userId];
if (!participantCell.powerLevelLabel.text) {
participantCell.powerLevelLabel.text = contact.bwiUserLabel;
}
}
}
}