Make paste media configurable, pass it to the MatrixKit

This commit is contained in:
ismailgulek 2020-10-14 01:01:47 +03:00
parent 7a5fc4f61e
commit 3cb19df113
2 changed files with 2 additions and 0 deletions

View file

@ -217,6 +217,7 @@ final class BuildSettings: NSObject {
static let messageDetailsAllowViewSource: Bool = true
static let messageDetailsAllowSave: Bool = true
static let messageDetailsAllowCopyMedia: Bool = true
static let messageDetailsAllowPasteMedia: Bool = true
// MARK: - HTTP
/// Additional HTTP headers will be sent by all requests. Not recommended to use request-specific headers, like `Authorization`.

View file

@ -44,6 +44,7 @@ class CommonConfiguration: NSObject, Configurable {
settings.messageDetailsAllowSharing = BuildSettings.messageDetailsAllowShare
settings.messageDetailsAllowSaving = BuildSettings.messageDetailsAllowSave
settings.messageDetailsAllowCopyingMedia = BuildSettings.messageDetailsAllowCopyMedia
settings.messageDetailsAllowPastingMedia = BuildSettings.messageDetailsAllowPasteMedia
MXKContactManager.shared().allowLocalContactsAccess = BuildSettings.allowLocalContactsAccess
}