Make copy media configurable, pass it to the MatrixKit

This commit is contained in:
ismailgulek
2020-10-14 01:01:29 +03:00
parent 5ae7b14f7e
commit fa17f63f4b
3 changed files with 7 additions and 0 deletions
+5
View File
@@ -5209,6 +5209,11 @@
BOOL isCopyActionEnabled = !attachment || attachment.type != MXKAttachmentTypeSticker;
if (attachment && !BuildSettings.messageDetailsAllowCopyMedia)
{
isCopyActionEnabled = NO;
}
if (isCopyActionEnabled)
{
switch (event.eventType) {