新增 emoji 缓存清理功能以确保新的尺寸设置生效,优化表情处理逻辑,支持带场景参数的表情转换。同时,更新相关方法以适应新功能,提升用户体验。
This commit is contained in:
@@ -140,6 +140,9 @@ UIKIT_EXTERN NSString *kTabShowAnchorCardKey;
|
||||
[[NIMSDK sharedSDK].chatManager removeDelegate:self];
|
||||
[[NIMSDK sharedSDK].systemNotificationManager removeDelegate:self];
|
||||
[[NIMSDK sharedSDK].broadcastManager removeDelegate:self];
|
||||
|
||||
// 🔧 新增:清理 RoomBoomManager 监听器,防止内存泄漏
|
||||
[[RoomBoomManager sharedManager] removeEventListenerForTarget:self];
|
||||
}
|
||||
|
||||
- (void)viewDidLoad {
|
||||
@@ -186,10 +189,13 @@ UIKIT_EXTERN NSString *kTabShowAnchorCardKey;
|
||||
|
||||
[[RoomBoomManager sharedManager] registerBoomBanner:^(id _Nonnull sth) {
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[RoomBoomBannerAnimation display:kWindow
|
||||
with:sth
|
||||
tapToRoom:YES
|
||||
complete:^{}];
|
||||
// 🔧 新增:检查用户是否在房间中,只有在房间中才显示全局火箭升级通知
|
||||
if ([XPSkillCardPlayerManager shareInstance].isInRoom == YES) {
|
||||
[RoomBoomBannerAnimation display:kWindow
|
||||
with:sth
|
||||
tapToRoom:YES
|
||||
complete:^{}];
|
||||
}
|
||||
});
|
||||
} target:self];
|
||||
|
||||
|
Reference in New Issue
Block a user