mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
Introduce messageDetailsAllowSaving
This commit is contained in:
parent
7d8ec373f2
commit
0b0be7fcfc
2 changed files with 37 additions and 33 deletions
|
@ -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
|
||||
|
|
|
@ -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 ||
|
||||
|
|
Loading…
Reference in a new issue