Commit e75edaddf81569606f54af1282dc14f2ec7ea781
1 parent
d531975e
0.2.3 后台创建的公共号,收到新消息,新消息未读数不加 1
Showing
2 changed files
with
4 additions
and
2 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.2.3' | 11 | + s.version = '0.2.4' |
| 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/IMAConversationManager.m
| @@ -1404,7 +1404,9 @@ | @@ -1404,7 +1404,9 @@ | ||
| 1404 | 1404 | ||
| 1405 | [_conversationList insertObject:temp atIndex:[self insertPosition]]; | 1405 | [_conversationList insertObject:temp atIndex:[self insertPosition]]; |
| 1406 | 1406 | ||
| 1407 | - self.unReadMessageCount++; | 1407 | + /**非后台创建的公共号,未读消息数才 + 1 */ |
| 1408 | + if (![temp.receiver hasPrefix:@"sys_"])self.unReadMessageCount++; | ||
| 1409 | + | ||
| 1408 | [self updateOnNewConversation:temp]; | 1410 | [self updateOnNewConversation:temp]; |
| 1409 | } | 1411 | } |
| 1410 | 1412 |