Commit 1bce1bbf3ce6e691f77833d55d3f070a6622649a
1 parent
331e87fe
添加系统通知号
Showing
4 changed files
with
17 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.7.5' | 11 | + s.version = '0.7.6' |
| 12 | s.summary = 'A short description of CNLiveNewIMAManagerKit.' | 12 | s.summary = 'A short description of CNLiveNewIMAManagerKit.' |
| 13 | 13 | ||
| 14 | #s.description = <<-DESC | 14 | #s.description = <<-DESC |
CNLiveNewIMAManagerKit/Classes/Playform/IMAConversationManager.m
| @@ -145,7 +145,8 @@ | @@ -145,7 +145,8 @@ | ||
| 145 | || [conversation.getReceiver isEqualToString:CNWithRepastPay] | 145 | || [conversation.getReceiver isEqualToString:CNWithRepastPay] |
| 146 | || [conversation.getReceiver isEqualToString:CNWithReceipt] | 146 | || [conversation.getReceiver isEqualToString:CNWithReceipt] |
| 147 | || [conversation.getReceiver isEqualToString:CNWithRepastVerify] | 147 | || [conversation.getReceiver isEqualToString:CNWithRepastVerify] |
| 148 | - || [conversation.getReceiver isEqualToString:CNWithService]) | 148 | + || [conversation.getReceiver isEqualToString:CNWithService] |
| 149 | + || [conversation.getReceiver isEqualToString:CNWithShowSystemHao]) | ||
| 149 | { | 150 | { |
| 150 | NSLog(@"需要显示在会话列表上"); | 151 | NSLog(@"需要显示在会话列表上"); |
| 151 | }else{ | 152 | }else{ |
| @@ -796,7 +797,8 @@ | @@ -796,7 +797,8 @@ | ||
| 796 | || [conv.getReceiver isEqualToString:CNWithRepastPay] | 797 | || [conv.getReceiver isEqualToString:CNWithRepastPay] |
| 797 | || [conv.getReceiver isEqualToString:CNWithReceipt] | 798 | || [conv.getReceiver isEqualToString:CNWithReceipt] |
| 798 | || [conv.getReceiver isEqualToString:CNWithRepastVerify] | 799 | || [conv.getReceiver isEqualToString:CNWithRepastVerify] |
| 799 | - || [conv.getReceiver isEqualToString:CNWithService]) | 800 | + || [conv.getReceiver isEqualToString:CNWithService] |
| 801 | + || [conv.getReceiver isEqualToString:CNWithShowSystemHao]) | ||
| 800 | { | 802 | { |
| 801 | NSLog(@"已知后台消息"); | 803 | NSLog(@"已知后台消息"); |
| 802 | } | 804 | } |
CNLiveNewIMAManagerKit/Classes/PublicHeader/IMAConstant.h
| @@ -93,6 +93,10 @@ static NSString *const CNFirendMomentUserId = @"sys_moment"; | @@ -93,6 +93,10 @@ static NSString *const CNFirendMomentUserId = @"sys_moment"; | ||
| 93 | static NSString *const CNFirendMomentVideoUploadFinishUserId = @"sys_media"; | 93 | static NSString *const CNFirendMomentVideoUploadFinishUserId = @"sys_media"; |
| 94 | //服务端邀请加入特色群系统通知 | 94 | //服务端邀请加入特色群系统通知 |
| 95 | static NSString *const CNJoinFeatureGroupInvitation = @"sys_notice" ; | 95 | static NSString *const CNJoinFeatureGroupInvitation = @"sys_notice" ; |
| 96 | + | ||
| 97 | +//显性系统号 | ||
| 98 | +static NSString *const CNWithShowSystemHao =@"sys_notice2"; | ||
| 99 | + | ||
| 96 | //系统通知 | 100 | //系统通知 |
| 97 | static NSString *const CNWithSystemMessage = @"sys_system" ; | 101 | static NSString *const CNWithSystemMessage = @"sys_system" ; |
| 98 | //撤销消息通知 | 102 | //撤销消息通知 |
CNLiveNewIMAManagerKit/Classes/TIMCategory/IMAConversation+ShowAPIs.m
| @@ -34,6 +34,10 @@ | @@ -34,6 +34,10 @@ | ||
| 34 | }else if ([recerive isEqualToString:CNJoinFeatureGroupInvitation]) { | 34 | }else if ([recerive isEqualToString:CNJoinFeatureGroupInvitation]) { |
| 35 | return @"IMAConversation_ReuseIndentifier_featureGroup"; | 35 | return @"IMAConversation_ReuseIndentifier_featureGroup"; |
| 36 | } | 36 | } |
| 37 | + else if ([recerive isEqualToString:CNWithShowSystemHao]) | ||
| 38 | + { | ||
| 39 | + return @"IMAConversation_ReuseIndentifier_showSystemHao"; | ||
| 40 | + } | ||
| 37 | else if ([recerive isEqualToString:CNWithNews]) { | 41 | else if ([recerive isEqualToString:CNWithNews]) { |
| 38 | return @"IMAConversation_ReuseIndentifier_live"; | 42 | return @"IMAConversation_ReuseIndentifier_live"; |
| 39 | } | 43 | } |
| @@ -91,6 +95,10 @@ | @@ -91,6 +95,10 @@ | ||
| 91 | { | 95 | { |
| 92 | return @"群通知"; | 96 | return @"群通知"; |
| 93 | } | 97 | } |
| 98 | + else if ([recerive isEqualToString:CNWithShowSystemHao]) | ||
| 99 | + { | ||
| 100 | + return @"系统通知"; | ||
| 101 | + } | ||
| 94 | else if ([recerive isEqualToString:CNWithSubscri]) | 102 | else if ([recerive isEqualToString:CNWithSubscri]) |
| 95 | { | 103 | { |
| 96 | return @"订阅号"; | 104 | return @"订阅号"; |