mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-19 06:02:12 +02:00
Remove automatically hiding call button when no Jitsi URL is available
This commit is contained in:
@@ -206,6 +206,7 @@ final class BuildSettings: NSObject {
|
|||||||
]
|
]
|
||||||
// Jitsi server used outside integrations to create conference calls from the call button in the timeline.
|
// Jitsi server used outside integrations to create conference calls from the call button in the timeline.
|
||||||
// Setting this to nil effectively disables Jitsi conference calls (given that there is no wellknown override).
|
// Setting this to nil effectively disables Jitsi conference calls (given that there is no wellknown override).
|
||||||
|
// Note: this will not remove the conference call button, use roomScreenAllowVoIPForNonDirectRoom setting.
|
||||||
static let jitsiServerUrl: URL? = URL(string: "https://jitsi.riot.im")
|
static let jitsiServerUrl: URL? = URL(string: "https://jitsi.riot.im")
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1611,8 +1611,7 @@ static CGSize kThreadListBarButtonItemImageSize;
|
|||||||
{
|
{
|
||||||
return NO;
|
return NO;
|
||||||
}
|
}
|
||||||
BOOL callOptionAllowed = (self.roomDataSource.room.isDirect && RiotSettings.shared.roomScreenAllowVoIPForDirectRoom)
|
BOOL callOptionAllowed = (self.roomDataSource.room.isDirect && RiotSettings.shared.roomScreenAllowVoIPForDirectRoom) || (!self.roomDataSource.room.isDirect && RiotSettings.shared.roomScreenAllowVoIPForNonDirectRoom);
|
||||||
|| (!self.roomDataSource.room.isDirect && RiotSettings.shared.roomScreenAllowVoIPForNonDirectRoom && self.mainSession.vc_homeserverConfiguration.jitsi.serverURL);
|
|
||||||
return callOptionAllowed && BuildSettings.allowVoIPUsage && self.roomDataSource.mxSession.callManager && self.roomDataSource.room.summary.membersCount.joined >= 2;
|
return callOptionAllowed && BuildSettings.allowVoIPUsage && self.roomDataSource.mxSession.callManager && self.roomDataSource.room.summary.membersCount.joined >= 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user