Stop requesting URL previews if the feature has been disabled on the homeserver.

This commit is contained in:
Doug
2021-10-13 12:51:15 +01:00
parent dbddc675a5
commit ef572d42fe
3 changed files with 25 additions and 1 deletions
@@ -1117,6 +1117,8 @@ NSString *const URLPreviewDidUpdateNotification = @"URLPreviewDidUpdateNotificat
});
} failure:^(NSError * _Nullable error) {
MXStrongifyAndReturnIfNil(self);
MXLogDebug(@"[RoomBubbleCellData] Failed to get url preview")
// Remove the loading URLPreviewView, indicate that the layout needs refreshing and send a notification for refresh