MESSENGER-3352 build settings

This commit is contained in:
Arnfried Griesert
2022-10-27 09:06:24 +00:00
parent e2a2eb4c61
commit 86aa5365bb
103 changed files with 1013 additions and 1360 deletions
@@ -542,7 +542,7 @@
{
AccountRestrictionService *service = [[AccountRestrictionService alloc] initWithMxSession:room.mxSession];
self.showInviteUserFab = !(room.isDirect || BwiBuildSettings.allowInviteOnDirectRooms) && !room.isPersonalNotesRoom
self.showInviteUserFab = !(room.isDirect || BWIBuildSettings.shared.allowInviteOnDirectRooms) && !room.isPersonalNotesRoom
&& ![service isAddressListRestriction];
if (_showInviteUserFab)
@@ -782,7 +782,7 @@
// ...and then alphabetically.
// We could tiebreak instead by "last recently spoken in this room" if we wanted to.
NSComparator comparator = ^NSComparisonResult(Contact *contactA, Contact *contactB) {
if (BwiBuildSettings.bwiUserLabelParticipantSorting == true) {
if (BWIBuildSettings.shared.bwiUserLabelParticipantSorting == true) {
return [self bwiParticipantsCompareLeft:contactA right:contactB];
}
@@ -1122,13 +1122,13 @@
participantCell.contactDisplayNameLabel.text = [roomState.members memberName:contact.mxMember.userId];
}
if (BwiBuildSettings.bwiUserLabelsParticipantsVisible) {
if (BWIBuildSettings.shared.bwiUserLabelsParticipantsVisible) {
contact.bwiUserLabel = [self.bwiUserLabelService getUserLabelWithUser:contact.mxMember.userId];
participantCell.powerLevelLabel.text = contact.bwiUserLabel;
}
if (BuildSettings.bwiPersonalState && contact.mxMember.userId) {
if (BWIBuildSettings.shared.bwiPersonalState && contact.mxMember.userId) {
MXUser *user = [self.mxRoom.mxSession userWithUserId:contact.mxMember.userId];
participantCell.contactInformationLabel.text = user.statusMsg;
participantCell.contactInformationLabel.hidden = user.statusMsg.length <= 0;