修改了一些UI的问题

This commit is contained in:
fengshuo
2022-03-30 20:26:16 +08:00
committed by chenguilong
parent 2bf04ad1b8
commit b0abab8104
9 changed files with 69 additions and 16 deletions

View File

@@ -20,6 +20,7 @@
#import "PLTimeUtil.h"
#import "ClientConfig.h"
#import <POP.h>
#import "ThemeColor+Room.h"
///Model
#import "RoomInfoModel.h"
#import "AttachmentModel.h"
@@ -460,6 +461,15 @@ NSString * const kRoomShowTopicKey = @"kRoomShowTopicKey";
- (void)onRoomEntered {
[[XPRoomMiniManager shareManager] resetLocalMessage];
self.headerView.bubbleColor = self.hostDelegate.getRoomInfo.type == RoomType_MiniGame ? [UIColor colorWithWhite:1 alpha:0.2] : [ThemeColor messageBubbleColor];
}
- (void)onRoomUpdate {
///
if (self.hostDelegate.getRoomInfo.hadChangeRoomType) {
self.headerView.bubbleColor = self.hostDelegate.getRoomInfo.type == RoomType_MiniGame ? [UIColor colorWithWhite:1 alpha:0.2] : [ThemeColor messageBubbleColor];
[self.messageTableView reloadData];
}
}
#pragma mark - ScrollViewDelegate
@@ -523,6 +533,7 @@ NSString * const kRoomShowTopicKey = @"kRoomShowTopicKey";
NSAttributedString* attr = [self.datasource objectAtIndex:indexPath.row];
NSString *bubbleStr = [self.messageBubbles objectAtIndex:indexPath.row];
cell.bubbleImageUrl = bubbleStr;
cell.roomType = self.hostDelegate.getRoomInfo.type;
cell.attributedString = attr;
return cell;
}