mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-25 19:10:49 +02:00
MESSENGER-3352 build settings
This commit is contained in:
@@ -337,7 +337,7 @@ static CGSize kThreadListBarButtonItemImageSize;
|
||||
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(eventDidChangeIdentifier:) name:kMXEventDidChangeIdentifierNotification object:nil];
|
||||
|
||||
// Show / hide actions button in document preview according BuildSettings
|
||||
self.allowActionsInDocumentPreview = BuildSettings.messageDetailsAllowShare;
|
||||
self.allowActionsInDocumentPreview = BWIBuildSettings.shared.messageDetailsAllowShare;
|
||||
|
||||
_voiceMessageController = [[VoiceMessageController alloc] initWithThemeService:ThemeService.shared mediaServiceProvider:VoiceMessageMediaServiceProvider.sharedProvider];
|
||||
self.voiceMessageController.delegate = self;
|
||||
@@ -352,7 +352,7 @@ static CGSize kThreadListBarButtonItemImageSize;
|
||||
|
||||
[self vc_removeBackTitle];
|
||||
|
||||
if (BuildSettings.enableAntivirusScan)
|
||||
if (BWIBuildSettings.shared.enableAntivirusScan)
|
||||
{
|
||||
// Register antivirus scan cells
|
||||
[self registerContentScannerCells];
|
||||
@@ -606,7 +606,7 @@ static CGSize kThreadListBarButtonItemImageSize;
|
||||
|
||||
[VoiceMessageMediaServiceProvider.sharedProvider pauseAllServices];
|
||||
|
||||
if([BwiBuildSettings showMentionsInRoom]) {
|
||||
if([BWIBuildSettings.shared showMentionsInRoom]) {
|
||||
[Mentions setCountMentionsToZeroWithRoomID:self.roomDataSource.roomId];
|
||||
}
|
||||
|
||||
@@ -1764,7 +1764,7 @@ static CGSize kThreadListBarButtonItemImageSize;
|
||||
return NO;
|
||||
}
|
||||
BOOL callOptionAllowed = (self.roomDataSource.room.isDirect && RiotSettings.shared.roomScreenAllowVoIPForDirectRoom) || (!self.roomDataSource.room.isDirect && RiotSettings.shared.roomScreenAllowVoIPForNonDirectRoom);
|
||||
return callOptionAllowed && BuildSettings.allowVoIPUsage && self.roomDataSource.mxSession.callManager && self.roomDataSource.room.summary.membersCount.joined >= 2;
|
||||
return callOptionAllowed && BWIBuildSettings.shared.allowVoIPUsage && self.roomDataSource.mxSession.callManager && self.roomDataSource.room.summary.membersCount.joined >= 2;
|
||||
}
|
||||
|
||||
- (BOOL)isCallActive
|
||||
@@ -1926,7 +1926,7 @@ static CGSize kThreadListBarButtonItemImageSize;
|
||||
// Set user picture in input toolbar
|
||||
// bwi: if the room is a personal notes room a local image is used as room avatar
|
||||
if (userPictureView) {
|
||||
if (BwiBuildSettings.bwiUseCustomPersonalNotesAvatar
|
||||
if (BWIBuildSettings.shared.bwiUseCustomPersonalNotesAvatar
|
||||
&& [self.roomDataSource.room isPersonalNotesRoom]) {
|
||||
|
||||
PersonalNotesDefaultService *service = [PersonalNotesDefaultService service:self.mainSession];
|
||||
@@ -2555,7 +2555,7 @@ static CGSize kThreadListBarButtonItemImageSize;
|
||||
|
||||
- (ScreenPresentationParameters*)buildUniversalLinkPresentationParameters
|
||||
{
|
||||
return [[ScreenPresentationParameters alloc] initWithRestoreInitialDisplay:NO stackAboveVisibleViews:BuildSettings.allowSplitViewDetailsScreenStacking sender:self sourceView:nil];
|
||||
return [[ScreenPresentationParameters alloc] initWithRestoreInitialDisplay:NO stackAboveVisibleViews:BWIBuildSettings.shared.allowSplitViewDetailsScreenStacking sender:self sourceView:nil];
|
||||
}
|
||||
|
||||
- (BOOL)handleUniversalLinkURL:(NSURL*)url
|
||||
@@ -3019,7 +3019,7 @@ static CGSize kThreadListBarButtonItemImageSize;
|
||||
}
|
||||
|
||||
// Select the suitable table view cell class, by considering first the empty bubble cell.
|
||||
if (BuildSettings.enableAntivirusScan && bubbleData.showAntivirusScanStatus)
|
||||
if (BWIBuildSettings.shared.enableAntivirusScan && bubbleData.showAntivirusScanStatus)
|
||||
{
|
||||
// FRANK181
|
||||
cellIdentifier = [self contentScannerClassForBubbleCellData:roomBubbleCellData];
|
||||
@@ -3905,7 +3905,7 @@ static CGSize kThreadListBarButtonItemImageSize;
|
||||
}]];
|
||||
}
|
||||
|
||||
if (!isJitsiCallEvent && BuildSettings.messageDetailsAllowShare && selectedEvent.eventType != MXEventTypePollStart &&
|
||||
if (!isJitsiCallEvent && BWIBuildSettings.shared.messageDetailsAllowShare && selectedEvent.eventType != MXEventTypePollStart &&
|
||||
selectedEvent.eventType != MXEventTypeBeaconInfo)
|
||||
{
|
||||
[self.eventMenuBuilder addItemWithType:EventMenuItemTypeShare
|
||||
@@ -3956,7 +3956,7 @@ static CGSize kThreadListBarButtonItemImageSize;
|
||||
}]];
|
||||
}
|
||||
|
||||
if (BuildSettings.messageDetailsAllowSave)
|
||||
if (BWIBuildSettings.shared.messageDetailsAllowSave)
|
||||
{
|
||||
if (attachment.type == MXKAttachmentTypeImage || attachment.type == MXKAttachmentTypeVideo)
|
||||
{
|
||||
@@ -4031,7 +4031,7 @@ static CGSize kThreadListBarButtonItemImageSize;
|
||||
|
||||
if (attachment.type != MXKAttachmentTypeSticker)
|
||||
{
|
||||
if (BuildSettings.messageDetailsAllowShare)
|
||||
if (BWIBuildSettings.shared.messageDetailsAllowShare)
|
||||
{
|
||||
[self.eventMenuBuilder addItemWithType:EventMenuItemTypeShare
|
||||
action:[UIAlertAction actionWithTitle:[VectorL10n roomEventActionShare]
|
||||
@@ -4101,7 +4101,7 @@ static CGSize kThreadListBarButtonItemImageSize;
|
||||
}
|
||||
}
|
||||
|
||||
if (BuildSettings.messageDetailsAllowPermalink)
|
||||
if (BWIBuildSettings.shared.messageDetailsAllowPermalink)
|
||||
{
|
||||
[self.eventMenuBuilder addItemWithType:EventMenuItemTypePermalink
|
||||
action:[UIAlertAction actionWithTitle:[BWIL10n roomEventActionPermalink]
|
||||
@@ -4131,7 +4131,7 @@ static CGSize kThreadListBarButtonItemImageSize;
|
||||
}]];
|
||||
}
|
||||
|
||||
if (BuildSettings.messageDetailsAllowViewSource)
|
||||
if (BWIBuildSettings.shared.messageDetailsAllowViewSource)
|
||||
{
|
||||
[self.eventMenuBuilder addItemWithType:EventMenuItemTypeViewSource
|
||||
action:[UIAlertAction actionWithTitle:[VectorL10n roomEventActionViewSource]
|
||||
@@ -5466,7 +5466,7 @@ static CGSize kThreadListBarButtonItemImageSize;
|
||||
}
|
||||
|
||||
// bwi remove ignored users from typing users
|
||||
if (BwiBuildSettings.bwiBetterIgnoredUsers) {
|
||||
if (BWIBuildSettings.shared.bwiBetterIgnoredUsers) {
|
||||
for (NSString* ignoredId in self.mainSession.ignoredUsers) {
|
||||
NSUInteger index = [typingUsers indexOfObject:ignoredId];
|
||||
if (index != NSNotFound)
|
||||
@@ -6974,7 +6974,7 @@ static CGSize kThreadListBarButtonItemImageSize;
|
||||
|
||||
BOOL result = !attachment || attachment.type != MXKAttachmentTypeSticker;
|
||||
|
||||
if (attachment && !BuildSettings.messageDetailsAllowCopyMedia)
|
||||
if (attachment && !BWIBuildSettings.shared.messageDetailsAllowCopyMedia)
|
||||
{
|
||||
result = NO;
|
||||
}
|
||||
@@ -7147,7 +7147,7 @@ static CGSize kThreadListBarButtonItemImageSize;
|
||||
return !self.roomDataSource.threadId
|
||||
&& !event.threadId
|
||||
&& (RiotSettings.shared.enableThreads || self.mainSession.store.supportedMatrixVersions.supportsThreads)
|
||||
&& BwiBuildSettings.bwiShowThreads;
|
||||
&& BWIBuildSettings.shared.bwiShowThreads;
|
||||
}
|
||||
|
||||
- (void)showThreadsNotice
|
||||
|
||||
Reference in New Issue
Block a user