Skip to content

Commit

Permalink
新增深邃模式. 退群监控性能优化. 修复搜索界面BUG. 修复消息引用BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
MustangYM committed May 7, 2020
1 parent 470fa59 commit 7727d5a
Show file tree
Hide file tree
Showing 13 changed files with 59 additions and 10 deletions.
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 @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>18E226</string>
<string>19D76</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
Expand All @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>2.5.6</string>
<string>2.5.7</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
Expand All @@ -27,24 +27,24 @@
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>11B500</string>
<string>11C504</string>
<key>DTPlatformVersion</key>
<string>GM</string>
<key>DTSDKBuild</key>
<string>19B89</string>
<string>19B90</string>
<key>DTSDKName</key>
<string>macosx10.15</string>
<key>DTXcode</key>
<string>1120</string>
<string>1130</string>
<key>DTXcodeBuild</key>
<string>11B500</string>
<string>11C504</string>
<key>LSMinimumSystemVersion</key>
<string>10.10</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2017年 WeChatExtension. All rights reserved.</string>
<key>showUpdateWindow</key>
<true/>
<key>versionInfo</key>
<string>v2.5.6(2020-04-26):\n👉🏻 崩溃拦截, 修复收藏中笔记显示BUG,适配2.4.0.149群语音或视频显示,修复公众列表右键点击BUG,茱萸粉皮肤 \n</string>
<string>v2.5.7(2020-05-07):\n👉🏻 新增深邃模式. 退群监控性能优化. 修复搜索界面BUG. 修复消息引用BUG. \n</string>
</dict>
</plist>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions WeChatExtension/WeChatExtension/Base.lproj/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>2.5.6</string>
<string>2.5.7</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSHumanReadableCopyright</key>
Expand All @@ -25,6 +25,6 @@
<key>showUpdateWindow</key>
<true/>
<key>versionInfo</key>
<string>v2.5.6(2020-04-26):\n👉🏻 崩溃拦截, 修复收藏中笔记显示BUG,适配2.4.0.149群语音或视频显示,修复公众列表右键点击BUG,茱萸粉皮肤 \n</string>
<string>v2.5.7(2020-05-07):\n👉🏻 新增深邃模式. 退群监控性能优化. 修复搜索界面BUG. 修复消息引用BUG. \n</string>
</dict>
</plist>
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,55 @@ + (void)hookTheme
hookMethod(objc_getClass("MMAppReferContainerView"), NSSelectorFromString(@"highlightColor"), [self class], @selector(hook_referHighlightColor));
hookMethod(objc_getClass("MMReferTextAttachmentView"), NSSelectorFromString(@"setBgView:"), [self class], @selector(hook_referSetBgView:));

hookMethod(objc_getClass("MMSearchTableCellView"), NSSelectorFromString(@"setBackgroundColor:"), [self class], @selector(hook_searchCellSetBackgroundColor:));
hookMethod(objc_getClass("MMSearchTableSectionHeaderView"), NSSelectorFromString(@"setBackgroundView:"), [self class], @selector(hook_searchHeaderSetBackgroundView:));
hookMethod(objc_getClass("MMSearchTableCellView"), NSSelectorFromString(@"initWithFrame:"), [self class], @selector(hook_chatLogInitWithFrame:));
hookMethod(objc_getClass("MMSearchTableCellView"), NSSelectorFromString(@"prepareForReuse"), [self class], @selector(hook_chatLogPrepareForReuse));
}

}

#pragma mark - 搜索界面
- (id)hook_chatLogInitWithFrame:(CGRect)arg1
{
MMSearchChatLogTableCellView *cell = [self hook_chatLogInitWithFrame:arg1];
cell.hidden = YES;
dispatch_async(dispatch_get_main_queue(), ^{
[cell setSelected:YES];
cell.hidden = NO;
});
return cell;
}

- (void)hook_chatLogPrepareForReuse
{
MMSearchChatLogTableCellView *cell = (MMSearchChatLogTableCellView *)self;
cell.hidden = YES;
dispatch_async(dispatch_get_main_queue(), ^{
[cell setSelected:YES];
cell.hidden = NO;
});
[self hook_chatLogPrepareForReuse];
}

- (void)hook_chatLogCellSetTitleLabel:(MMTextField *)arg1
{
[self hook_chatLogCellSetTitleLabel:arg1];
dispatch_async(dispatch_get_main_queue(), ^{
arg1.backgroundColor = [TKWeChatPluginConfig sharedConfig].mainChatCellBackgroundColor;
});
}

- (void)hook_searchHeaderSetBackgroundView:(NSView *)arg1
{
[self hook_searchHeaderSetBackgroundView:arg1];
dispatch_async(dispatch_get_main_queue(), ^{
[[YMThemeManager shareInstance] changeTheme:arg1];
});
}

- (void)hook_searchCellSetBackgroundColor:(NSColor *)arg1
{
[self hook_searchCellSetBackgroundColor:[TKWeChatPluginConfig sharedConfig].mainChatCellBackgroundColor];
}

- (NSImageView *)hook_chatDetailAvatarImageView
Expand Down
2 changes: 2 additions & 0 deletions WeChatExtension/WeChatExtension/WeChatPlugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,7 @@ forHTTPHeaderField:(NSString *)field;

@interface MMSearchChatLogTableCellView : NSTableCellView
@property (nonatomic, strong) NSColor *backgroundColor;
- (void)setSelected:(BOOL)arg1;
@end

@interface MMChatInfoView : NSView
Expand Down Expand Up @@ -837,3 +838,4 @@ forHTTPHeaderField:(NSString *)field;
@interface WeChatApplication : NSApplication
- (BOOL)isMiniProgramProcess;
@end

0 comments on commit 7727d5a

Please sign in to comment.