mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 17:12:45 +02:00
Feature/2792 function accounts s1
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user