mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-18 23:48:29 +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:
@@ -3124,6 +3124,9 @@ TableViewSectionsDelegate>
|
||||
- (void)toggleEnableURLPreviews:(UISwitch *)sender
|
||||
{
|
||||
RiotSettings.shared.roomScreenShowsURLPreviews = sender.on;
|
||||
|
||||
// Any loaded cell data is now invalid and should be refreshed for the new value.
|
||||
[[MXKRoomDataSourceManager sharedManagerForMatrixSession:self.mainSession] reset];
|
||||
}
|
||||
|
||||
- (void)toggleSendCrashReport:(id)sender
|
||||
|
||||
Reference in New Issue
Block a user