mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 00:52:43 +02:00
MESSENGER-5290 fix klickable events
This commit is contained in:
@@ -1747,7 +1747,7 @@ static NSString *const kRepliedTextPattern = @"<mx-reply>.*<blockquote>.*<br>(.*
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
|
||||
NSMutableAttributedString *str = [[NSMutableAttributedString alloc] initWithString:string];
|
||||
|
||||
NSRange wholeString = NSMakeRange(0, str.length);
|
||||
@@ -1795,7 +1795,12 @@ static NSString *const kRepliedTextPattern = @"<mx-reply>.*<blockquote>.*<br>(.*
|
||||
{
|
||||
// body font is the same with the whole string font, no need to change body font
|
||||
// apply additional treatments
|
||||
[self postRenderAttributedString:str];
|
||||
|
||||
//
|
||||
if (!event.isState) {
|
||||
[self postRenderAttributedString:str];
|
||||
}
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
@@ -1820,6 +1825,7 @@ static NSString *const kRepliedTextPattern = @"<mx-reply>.*<blockquote>.*<br>(.*
|
||||
[str addAttribute:NSFontAttributeName value:fontForBody range:bodyRange];
|
||||
// apply additional treatments
|
||||
[self postRenderAttributedString:str];
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user