mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 16:13:42 +02:00
Check whether URL previews should be shown in a single location.
Reset all cell data when this setting is changed to force a refresh. Rename `hasClosedPreview(from:)` to `shouldShowPreview(for:)` for clarity and potentially adding more rules at a later date.
This commit is contained in:
@@ -372,7 +372,7 @@ const CGFloat kTypingCellHeight = 24;
|
||||
URLPreviewView *urlPreviewView;
|
||||
|
||||
// Show a URL preview if the component has a link that should be previewed.
|
||||
if (RiotSettings.shared.roomScreenShowsURLPreviews && component.showURLPreview)
|
||||
if (component.showURLPreview)
|
||||
{
|
||||
urlPreviewView = [URLPreviewView instantiate];
|
||||
urlPreviewView.preview = component.urlPreviewData;
|
||||
|
||||
Reference in New Issue
Block a user