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 47e54b79cc
commit 24bfe36712
11 changed files with 42 additions and 6 deletions
@@ -43,7 +43,8 @@
{
RoomBubbleCellData *bubbleData = (RoomBubbleCellData*)cellData;
if (bubbleData && bubbleData.showURLPreview)
// Include the URL preview in the height if necessary.
if (RiotSettings.shared.roomScreenShowsURLPreviews && bubbleData && bubbleData.showURLPreview)
{
CGFloat height = [super heightForCellData:cellData withMaximumWidth:maxWidth];
return height + RoomBubbleCellLayout.urlPreviewViewTopMargin + [URLPreviewView contentViewHeightFor:bubbleData.urlPreviewData];