Merge pull request #3543 from vector-im/config_fixes

Config Fixes
This commit is contained in:
ismailgulek 2020-08-14 14:48:38 +03:00 committed by GitHub
commit 9851a771b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 43 additions and 34 deletions

View file

@ -186,6 +186,7 @@ final class BuildSettings: NSObject {
static let messageDetailsAllowShare: Bool = true
static let messageDetailsAllowPermalink: Bool = true
static let messageDetailsAllowViewSource: Bool = true
static let messageDetailsAllowSaving: Bool = true
// MARK: - Authentication Screen

View file

@ -40,6 +40,11 @@ class CommonConfiguration: NSObject, Configurable {
// Enable lazy loading
settings.syncWithLazyLoadOfRoomMembers = true
settings.messageDetailsAllowSharing = BuildSettings.messageDetailsAllowShare
settings.messageDetailsAllowSaving = BuildSettings.messageDetailsAllowSaving
MXKContactManager.shared().allowLocalContactsAccess = BuildSettings.allowLocalContactsAccess
}
private func setupMatrixSDKSettings() {

View file

@ -11,7 +11,7 @@ use_frameworks!
# - `{ {kit spec hash} => {sdk spec hash}` to depend on specific pod options (:git => …, :podspec => …) for each repo. Used by Fastfile during CI
#
# Warning: our internal tooling depends on the name of this variable name, so be sure not to change it
$matrixKitVersion = '= 0.12.12'
$matrixKitVersion = '= 0.12.13'
# $matrixKitVersion = :local
# $matrixKitVersion = {'develop' => 'develop'}

View file

@ -2608,6 +2608,8 @@
}
}
else // Add action for attachment
{
if (BuildSettings.messageDetailsAllowSaving)
{
if (attachment.type == MXKAttachmentTypeImage || attachment.type == MXKAttachmentTypeVideo)
{
@ -2644,6 +2646,7 @@
}]];
}
}
// Check status of the selected event
if (selectedEvent.sentState == MXEventSentStatePreparing ||