Fix: the avatar was incorrect for the pill of a message if the event is not loaded.

This commit is contained in:
Nicolas Mauri
2023-03-21 09:27:48 +01:00
parent cdd144a7e2
commit 0066fcedbc
2 changed files with 12 additions and 14 deletions
-1
View File
@@ -1059,7 +1059,6 @@ manualChangeMessageForVideo:(NSString*)manualChangeMessageForVideo
NSString *link = [mutableAttributedString.string substringWithRange:matchRange];
// Handle potential permalinks
if ([permalinkRegex numberOfMatchesInString:link options:0 range:NSMakeRange(0, link.length)]) {
MXLogDebug(@"[MXKTools] Permalink detected: %@", link);
NSURLComponents *url = [[NSURLComponents new] initWithString:link];
if (url.URL)
{