Skip to content

Commit

Permalink
Update ==> 加强 alfred 搜索结果群聊的判断
Browse files Browse the repository at this point in the history
  • Loading branch information
TKkk-iOSer committed Aug 11, 2018
1 parent bc59741 commit da04d2c
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 19 deletions.

This file was deleted.

This file was deleted.

Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file modified Other/Products/Debug/WeChatPlugin.framework/WeChatPlugin
Binary file not shown.
7 changes: 6 additions & 1 deletion WeChatPlugin/Sources/Managers/TKWebServerManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,12 @@ - (void)addHandleForSearchUser {
while (!(hasResult && logic.isContactSearched && logic.isGroupContactSearched)) {};

[logic.contactResults enumerateObjectsUsingBlock:^(MMSearchResultItem * _Nonnull contact, NSUInteger idx, BOOL * _Nonnull stop) {
[sessionList addObject:[weakSelf dictFromContactSearchResult:(MMComplexContactSearchResult *)contact.result]];
if ([contact.result isKindOfClass:objc_getClass("MMComplexContactSearchResult")]) {
[sessionList addObject:[weakSelf dictFromContactSearchResult:(MMComplexContactSearchResult *)contact.result]];
} else if([contact.result isKindOfClass:objc_getClass("MMComplexGroupContactSearchResult")]) {
[sessionList addObject:[weakSelf dictFromGroupSearchResult:(MMComplexGroupContactSearchResult *)contact.result]];
}

}];
[logic.groupResults enumerateObjectsUsingBlock:^(MMSearchResultItem * _Nonnull group, NSUInteger idx, BOOL * _Nonnull stop) {
[sessionList addObject:[weakSelf dictFromGroupSearchResult:(MMComplexGroupContactSearchResult *)group.result]];
Expand Down

0 comments on commit da04d2c

Please sign in to comment.