Use MXKPasteboardManager.pasteboard on copy operations

This commit is contained in:
ismailgulek 2020-10-09 15:20:54 +03:00
parent f5caa8a84b
commit 75c893e1bd
3 changed files with 6 additions and 6 deletions

View file

@ -233,7 +233,7 @@ static RageShakeManager* sharedInstance = nil;
UIGraphicsEndImageContext();
// the image is copied in the clipboard
MXKAppSettings.standardAppSettings.pasteboard.image = image;
MXKPasteboardManager.shared.pasteboard.image = image;
return image;
}

View file

@ -2622,7 +2622,7 @@
if (permalink)
{
MXKAppSettings.standardAppSettings.pasteboard.string = permalink;
MXKPasteboardManager.shared.pasteboard.string = permalink;
}
else
{
@ -5256,7 +5256,7 @@
if (textMessage)
{
MXKAppSettings.standardAppSettings.pasteboard.string = textMessage;
MXKPasteboardManager.shared.pasteboard.string = textMessage;
}
else
{

View file

@ -898,7 +898,7 @@ NSString *const kRoomSettingsAdvancedE2eEnabledCellViewIdentifier = @"kRoomSetti
if (roomdId)
{
MXKAppSettings.standardAppSettings.pasteboard.string = roomdId;
MXKPasteboardManager.shared.pasteboard.string = roomdId;
}
else
{
@ -1006,7 +1006,7 @@ NSString *const kRoomSettingsAdvancedE2eEnabledCellViewIdentifier = @"kRoomSetti
if (roomAlias)
{
MXKAppSettings.standardAppSettings.pasteboard.string = roomAlias;
MXKPasteboardManager.shared.pasteboard.string = roomAlias;
}
else
{
@ -1031,7 +1031,7 @@ NSString *const kRoomSettingsAdvancedE2eEnabledCellViewIdentifier = @"kRoomSetti
if (permalink)
{
MXKAppSettings.standardAppSettings.pasteboard.string = permalink;
MXKPasteboardManager.shared.pasteboard.string = permalink;
}
else
{