Add setting to disable URL previews.

Using a temporary position in the settings screen whilst waiting for feedback.
This commit is contained in:
Doug
2021-09-03 10:19:26 +01:00
parent 8f8322a94c
commit ef65feb3de
11 changed files with 42 additions and 6 deletions
@@ -389,7 +389,7 @@ const CGFloat kTypingCellHeight = 24;
URLPreviewView *urlPreviewView;
// Show a URL preview if the component has a link that should be previewed.
if (link && cellData.showURLPreview)
if (link && RiotSettings.shared.roomScreenShowsURLPreviews && cellData.showURLPreview)
{
urlPreviewView = [URLPreviewView instantiate];
urlPreviewView.preview = cellData.urlPreviewData;