Skip to content

Commit

Permalink
公众号bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yanmao committed Jul 21, 2020
1 parent 7dcea5f commit 96215a2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
Binary file modified WeChatExtension/Rely/Plugin/WeChatExtension.zip
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ - (BOOL)hook_shouldDisableSetFrameOrigin
NSTextView *view = (NSTextView *)self;

// Search chat history window
if (view.superview != nil && ([view.superview isKindOfClass:NSClassFromString(@"MMChatLogEventView")] || [view.superview isKindOfClass:NSClassFromString(@"MMView")])) {
if (view.superview != nil && ([view.superview isKindOfClass:NSClassFromString(@"MMChatLogEventView")] || [view.superview isKindOfClass:NSClassFromString(@"MMView")]) && ![view.superview isKindOfClass:objc_getClass("MMReaderWrapView")]) {
NSRange area = NSMakeRange(0, [view.textStorage length]);
[view.textStorage removeAttribute:NSForegroundColorAttributeName range:area];
[view.textStorage addAttributes:@{
Expand Down

0 comments on commit 96215a2

Please sign in to comment.