Commit 60f2600a9c24315f5c5c29c33925e65d2dc0b449
1 parent
7c01474f
0.4.6 版本 去除未知消息提醒
相册动态消息高度适配
Showing
3 changed files
with
7 additions
and
4 deletions
CNLiveNewIMAManagerKit.podspec
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]]; | ... | ... |