Skip to content

Commit

Permalink
v2.6.6
Browse files Browse the repository at this point in the history
  • Loading branch information
yanmao committed Sep 2, 2020
1 parent eff96de commit 0ff8d59
Show file tree
Hide file tree
Showing 4 changed files with 8 additions 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 @@ -88,7 +88,7 @@ - (void)hook_tabbarController:(id)arg1 didSelectViewController:(id)arg2
[self hook_tabbarController:arg1 didSelectViewController:arg2];
if ([arg2 isKindOfClass:objc_getClass("MMChatsViewController")]) {
if ([YMThemeManager shareInstance].loadCount >= 1) {
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(3 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
MMSessionMgr *sessionMgr = [[objc_getClass("MMServiceCenter") defaultCenter] getService:objc_getClass("MMSessionMgr")];
[sessionMgr loadSessionData];
});
Expand Down
7 changes: 7 additions & 0 deletions WeChatExtension/WeChatExtension/Sources/Hook/WeChat+hook.m
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,13 @@ - (void)hook_sortSessions {
[arrSession addObject:sessionInfo];
}
}];

@try {
WeChat *wechat = [objc_getClass("WeChat") sharedInstance];
[wechat.chatsViewController.tableView reloadData];
} @catch (NSException *exception) {

}
}
}

Expand Down

0 comments on commit 0ff8d59

Please sign in to comment.