动态显示的问题

This commit is contained in:
fengshuo
2022-08-26 21:32:28 +08:00
parent 93bbfda422
commit 8c8de6841e
4 changed files with 9 additions and 7 deletions

View File

@@ -273,10 +273,12 @@
} }
- (BOOL)messageShowAvatar:(NIMMessage *)message { - (BOOL)messageShowAvatar:(NIMMessage *)message {
NIMCustomObject *obj = (NIMCustomObject *)message.messageObject; if (message.messageType == NIMMessageTypeCustom) {
AttachmentModel *attachment = (AttachmentModel *)obj.attachment; NIMCustomObject *obj = (NIMCustomObject *)message.messageObject;
if (attachment.first == CustomMessageType_Chat_Risk_Alert) { AttachmentModel *attachment = (AttachmentModel *)obj.attachment;
return YES; if (attachment.first == CustomMessageType_Chat_Risk_Alert) {
return YES;
}
} }
return NO; return NO;
} }

View File

@@ -40,7 +40,7 @@
[Api monentsTopicList:[self createHttpCompletion:^(BaseModel * _Nonnull data) { [Api monentsTopicList:[self createHttpCompletion:^(BaseModel * _Nonnull data) {
NSArray * array = [MonentsTopicModel modelsWithArray:data.data[@"records"]]; NSArray * array = [MonentsTopicModel modelsWithArray:data.data[@"records"]];
[[self getView] monentsTopicListSuccess:array]; [[self getView] monentsTopicListSuccess:array];
}] uid:uid page:pageStr pageSize:pageSizeStr worldTypeId:@"0"]; }] uid:uid page:pageStr pageSize:pageSizeStr worldTypeId:@"1"];
} }
/// ///

View File

@@ -81,8 +81,8 @@
#pragma mark - Event Response #pragma mark - Event Response
- (void)didClickFoldButton:(UIButton *)sender { - (void)didClickFoldButton:(UIButton *)sender {
self.monentsInfo.isFold = sender.selected;
sender.selected = !sender.selected; sender.selected = !sender.selected;
self.monentsInfo.isFold = !sender.selected;
if (self.delegate && [self.delegate respondsToSelector:@selector(xPMonentsContentView:didClickFold:)]) { if (self.delegate && [self.delegate respondsToSelector:@selector(xPMonentsContentView:didClickFold:)]) {
[self.delegate xPMonentsContentView:self didClickFold:self.monentsInfo]; [self.delegate xPMonentsContentView:self didClickFold:self.monentsInfo];
} }

View File

@@ -91,7 +91,7 @@
- (void)headerRefresh { - (void)headerRefresh {
self.page = 1; self.page = 1;
[self.presenter getMonentsRecommendList:self.page pageSize:20 state:0]; [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 { - (void)footerRefresh {