Commit 1bce1bbf3ce6e691f77833d55d3f070a6622649a

Authored by niudaojian
1 parent 331e87fe

添加系统通知号

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