Create reply body only if replied event sender is available

This commit is contained in:
aringenbach
2022-06-03 09:14:06 +02:00
parent 121454895f
commit d7e876ada1
@@ -1912,7 +1912,7 @@ static NSString *const kHTMLATagRegexPattern = @"<a href=\"(.*?)\">([^<]*)</a>";
}
}
if (eventContent)
if (eventContent && repliedEvent.sender)
{
html = [NSString stringWithFormat:@"<mx-reply><blockquote><a href=\"%@\">In reply to</a> <a href=\"%@\">%@</a><br>%@</blockquote></mx-reply>%@",
[MXTools permalinkToEvent:repliedEvent.eventId inRoom:repliedEvent.roomId],