动态显示的问题
This commit is contained in:
@@ -273,10 +273,12 @@
|
||||
}
|
||||
|
||||
- (BOOL)messageShowAvatar:(NIMMessage *)message {
|
||||
NIMCustomObject *obj = (NIMCustomObject *)message.messageObject;
|
||||
AttachmentModel *attachment = (AttachmentModel *)obj.attachment;
|
||||
if (attachment.first == CustomMessageType_Chat_Risk_Alert) {
|
||||
return YES;
|
||||
if (message.messageType == NIMMessageTypeCustom) {
|
||||
NIMCustomObject *obj = (NIMCustomObject *)message.messageObject;
|
||||
AttachmentModel *attachment = (AttachmentModel *)obj.attachment;
|
||||
if (attachment.first == CustomMessageType_Chat_Risk_Alert) {
|
||||
return YES;
|
||||
}
|
||||
}
|
||||
return NO;
|
||||
}
|
||||
|
@@ -40,7 +40,7 @@
|
||||
[Api monentsTopicList:[self createHttpCompletion:^(BaseModel * _Nonnull data) {
|
||||
NSArray * array = [MonentsTopicModel modelsWithArray:data.data[@"records"]];
|
||||
[[self getView] monentsTopicListSuccess:array];
|
||||
}] uid:uid page:pageStr pageSize:pageSizeStr worldTypeId:@"0"];
|
||||
}] uid:uid page:pageStr pageSize:pageSizeStr worldTypeId:@"1"];
|
||||
}
|
||||
|
||||
/// 动态点赞
|
||||
|
@@ -81,8 +81,8 @@
|
||||
|
||||
#pragma mark - Event Response
|
||||
- (void)didClickFoldButton:(UIButton *)sender {
|
||||
self.monentsInfo.isFold = sender.selected;
|
||||
sender.selected = !sender.selected;
|
||||
self.monentsInfo.isFold = !sender.selected;
|
||||
if (self.delegate && [self.delegate respondsToSelector:@selector(xPMonentsContentView:didClickFold:)]) {
|
||||
[self.delegate xPMonentsContentView:self didClickFold:self.monentsInfo];
|
||||
}
|
||||
|
@@ -91,7 +91,7 @@
|
||||
- (void)headerRefresh {
|
||||
self.page = 1;
|
||||
[self.presenter getMonentsRecommendList:self.page pageSize:20 state:0];
|
||||
[self.presenter getMonentsTopicList:self.page pageSize:8];
|
||||
[self.presenter getMonentsTopicList:self.page pageSize:20];
|
||||
}
|
||||
|
||||
- (void)footerRefresh {
|
||||
|
Reference in New Issue
Block a user