Skip to content

Commit 38d8c3a

Browse files
guangyaoguangyao
authored andcommitted
Fix 创建群组时无法加载表情页面的问题
1 parent ee9dbad commit 38d8c3a

File tree

4 files changed

+3
-15
lines changed

4 files changed

+3
-15
lines changed

ios/RCTAuroraIMUI/DWCustomView/DWEmoticonView/NIMPageView.m

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ @interface NIMPageView ()
1212
{
1313
NSInteger _currentPage;
1414
NSInteger _currentPageForRotation;
15-
BOOL _isLoaded;
1615
}
1716

1817
@property (nonatomic,strong) NSMutableArray *pages;
@@ -34,19 +33,9 @@ - (id)initWithFrame:(CGRect)frame
3433
{
3534
[self setupControls];
3635
}
37-
_isLoaded = NO;
38-
[[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(clickLoadPages) name:@"LoadPagesNotification" object:nil];
3936
return self;
4037
}
4138

42-
- (void)clickLoadPages{
43-
if (!_isLoaded) {
44-
_isLoaded = YES;
45-
dispatch_async(dispatch_get_main_queue(), ^{
46-
[self reloadData];
47-
});
48-
}
49-
}
5039

5140
- (id)initWithCoder:(NSCoder *)aDecoder
5241
{
@@ -120,8 +109,8 @@ - (void)scrollToPage: (NSInteger)page
120109
{
121110
_currentPage = page;
122111
// [self reloadData];
112+
[self performSelector:@selector(reloadData) withObject:nil afterDelay:0.5];
123113
}
124-
125114
}
126115

127116
- (void)reloadData

ios/RCTAuroraIMUI/DWCustomView/InputView/DWInputBarControl.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ - (void)addSubContentView{
201201
_expressionView.delegate = self;
202202
[self addSubview:_expressionView];
203203
_expressionView.hidden = YES;
204-
NIMInputEmoticonTabView *tab = _expressionView.tabView;
205204

206205

207206
self.functionView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, screenW, menuViewH)];

ios/RCTAuroraIMUI/RCTAuroraIMUIModule.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232

3333
//inputControll Notification
34-
#define LoadPagesNotification @"LoadPagesNotification" //加载表情
34+
3535
#define RecordChangeNotification @"RecordChangeNotification"
3636
#define GetAtPersonNotification @"GetAtPersonNotification"
3737

ios/RCTAuroraIMUI/RCTAuroraIMUIModule.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ - (id)init {
7474
}
7575

7676
RCT_EXPORT_METHOD(clickLoadEmotionPages) {
77-
[[NSNotificationCenter defaultCenter] postNotificationName:LoadPagesNotification object:nil];
77+
// [[NSNotificationCenter defaultCenter] postNotificationName:LoadPagesNotification object:nil];//已弃用
7878
}
7979

8080

0 commit comments

Comments
 (0)