mirror of
https://github.com/lint/TFDidThatSay
synced 2025-07-01 23:46:47 +00:00
Fix Apollo crash on 1.10.9
This commit is contained in:
@ -77,6 +77,7 @@
|
||||
|
||||
@interface MarkdownRenderer
|
||||
+ (id)attributedStringFromMarkdown:(id)arg1 withAttributes:(id)arg2;
|
||||
+ (id)attributedStringFromMarkdown:(id)arg1 withAttributes:(id)arg2 isForPreview:(BOOL)arg3;
|
||||
@end
|
||||
|
||||
@interface ActionController
|
||||
|
@ -318,7 +318,12 @@ id apolloCommentsControllerForContext;
|
||||
NSAttributedString *newAuthorAttributedString = [[NSAttributedString alloc] initWithString:author attributes:authorStringAttributes];
|
||||
|
||||
[authorNode setAttributedTitle:newAuthorAttributedString forState:UIControlStateNormal];
|
||||
[bodyNode setAttributedString:[%c(MarkdownRenderer) attributedStringFromMarkdown:body withAttributes:apolloBodyAttributes]];
|
||||
@try {
|
||||
[bodyNode setAttributedString:[%c(MarkdownRenderer) attributedStringFromMarkdown:body withAttributes:apolloBodyAttributes]];
|
||||
}
|
||||
@catch (NSException *exc) {
|
||||
[bodyNode setAttributedString:[%c(MarkdownRenderer) attributedStringFromMarkdown:body withAttributes:apolloBodyAttributes isForPreview:NO]];
|
||||
}
|
||||
|
||||
if ([data objectForKey:@"sender"]) {
|
||||
[data[@"sender"] setEnabled:YES];
|
||||
@ -377,7 +382,12 @@ id apolloCommentsControllerForContext;
|
||||
NSAttributedString* newAuthorAttributedString = [[NSAttributedString alloc] initWithString:authorTextString attributes:authorStringAttributes];
|
||||
|
||||
[authorNode setAttributedTitle:newAuthorAttributedString forState:UIControlStateNormal];
|
||||
[bodyNode setAttributedString:[%c(MarkdownRenderer) attributedStringFromMarkdown:body withAttributes:apolloBodyAttributes]];
|
||||
@try {
|
||||
[bodyNode setAttributedString:[%c(MarkdownRenderer) attributedStringFromMarkdown:body withAttributes:apolloBodyAttributes]];
|
||||
}
|
||||
@catch (NSException *exc) {
|
||||
[bodyNode setAttributedString:[%c(MarkdownRenderer) attributedStringFromMarkdown:body withAttributes:apolloBodyAttributes isForPreview:NO]];
|
||||
}
|
||||
}
|
||||
|
||||
%end
|
||||
|
Reference in New Issue
Block a user