Commit 924d6adbd9ce69ef1f91961ffd9640df72a6f071
1 parent
a54b989b
0.1.7 判断用户是否在通讯录
Showing
3 changed files
with
3 additions
and
3 deletions
CNLiveNewIMAManagerKit.podspec
| @@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
| 8 | 8 | ||
| 9 | Pod::Spec.new do |s| | 9 | Pod::Spec.new do |s| |
| 10 | s.name = 'CNLiveNewIMAManagerKit' | 10 | s.name = 'CNLiveNewIMAManagerKit' |
| 11 | - s.version = '0.1.6' | 11 | + s.version = '0.1.7' |
| 12 | s.summary = 'A short description of CNLiveNewIMAManagerKit.' | 12 | s.summary = 'A short description of CNLiveNewIMAManagerKit.' |
| 13 | 13 | ||
| 14 | # This description is used to generate tags and improve search results. | 14 | # This description is used to generate tags and improve search results. |
CNLiveNewIMAManagerKit/Classes/Playform/IMAContactManager.h
| @@ -138,7 +138,7 @@ typedef void (^IMASubGroupCompletion)(IMASubGroup *sg); | @@ -138,7 +138,7 @@ typedef void (^IMASubGroupCompletion)(IMASubGroup *sg); | ||
| 138 | //是否加入了该群 | 138 | //是否加入了该群 |
| 139 | - (BOOL)isJionGroup:(NSString *)groupID; | 139 | - (BOOL)isJionGroup:(NSString *)groupID; |
| 140 | 140 | ||
| 141 | -// user是否为我的好友,YES,是, NO,则为陌生人 | 141 | +// 检查通讯录中是否含有些人 |
| 142 | - (BOOL)isMyFriend:(IMAUser *)user; | 142 | - (BOOL)isMyFriend:(IMAUser *)user; |
| 143 | 143 | ||
| 144 | 144 |
CNLiveNewIMAManagerKit/Classes/Playform/IMAContactManager.m
| @@ -248,7 +248,7 @@ | @@ -248,7 +248,7 @@ | ||
| 248 | return YES; | 248 | return YES; |
| 249 | } | 249 | } |
| 250 | NSInteger index = [self.friendsList indexOfObject:user]; | 250 | NSInteger index = [self.friendsList indexOfObject:user]; |
| 251 | - if (index >= 0 && index < self.friendsList.count && user.blackType == CNFriendsCheckResultTypeFriends) | 251 | + if (index >= 0 && index < self.friendsList.count) |
| 252 | { | 252 | { |
| 253 | return YES; | 253 | return YES; |
| 254 | } | 254 | } |