Skip to content

Commit

Permalink
updated SDK
Browse files Browse the repository at this point in the history
and added a fix for the discover server table view cell
  • Loading branch information
Velin92 committed Jul 5, 2024
1 parent 515cfde commit 2063a4a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,16 @@ - (void)render:(id<MXKDirectoryServerCellDataStoring>)cellData
{
iconURL = [NSString stringWithFormat:@"%@%@", kMXContentUriScheme, [iconURL substringFromIndex:range.location + range.length]];
}
// Check also if we are using the authenticated endpoint
else
{
mxMediaPrefix = [NSString stringWithFormat:@"/%@/download/", kMXAuthenticatedContentPrefixPath];
range = [iconURL rangeOfString:mxMediaPrefix];
if (range.location != NSNotFound)
{
iconURL = [NSString stringWithFormat:@"%@%@", kMXContentUriScheme, [iconURL substringFromIndex:range.location + range.length]];
}
}
[self.iconImageView setImageURI:iconURL
withType:nil
andImageOrientation:UIImageOrientationUp
Expand Down

0 comments on commit 2063a4a

Please sign in to comment.