Commit 60f2600a9c24315f5c5c29c33925e65d2dc0b449

Authored by daojian
1 parent 7c01474f

0.4.6 版本 去除未知消息提醒

相册动态消息高度适配
CNLiveNewIMAManagerKit.podspec
... ... @@ -8,7 +8,7 @@
8 8  
9 9 Pod::Spec.new do |s|
10 10 s.name = 'CNLiveNewIMAManagerKit'
11   - s.version = '0.4.5'
  11 + s.version = '0.4.6'
12 12 s.summary = 'A short description of CNLiveNewIMAManagerKit.'
13 13  
14 14 #s.description = <<-DESC
... ...
CNLiveNewIMAManagerKit/Classes/TIMCategory/TIMElem+ShowAPIs.m
... ... @@ -853,6 +853,12 @@
853 853 break;
854 854 case EIMAMSG_PhotoAlbumDynamic:
855 855 {
  856 + NSDictionary *photoDic = packMsg.customMsgData[@"photoAlbumData"];
  857 + NSString *des = photoDic[@"text"];
  858 + if ([NSString isEmpty:des]) {
  859 + return CGSizeMake(width, (180 + 10)*RATIO);
  860 + }
  861 +
856 862 return CGSizeMake(width, (220 + 10)*RATIO);
857 863 }
858 864 break;
... ...
CNLiveNewIMAManagerKit/Classes/TIMModel/MSG/IMAMsg.m
... ... @@ -864,9 +864,6 @@
864 864  
865 865 - (NSAttributedString *)attributeMsgTip {
866 866  
867   - if (self.type == EIMAMSG_Unknown) {
868   - return [[NSMutableAttributedString alloc] initWithString:@"未知消息"];
869   - }
870 867  
871 868 NSMutableAttributedString *muAtt = [[NSMutableAttributedString alloc] initWithAttributedString:[self senderName]];
872 869 [muAtt appendAttributedString:[self lastMsgContent]];
... ...