Skip to content

Commit cbec584

Browse files
guangyaoguangyao
authored andcommitted
Fix声音大小
1 parent 2ebc270 commit cbec584

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ios/RNNeteaseIm/RNNeteaseIm/ConversationViewController.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,10 @@ - (instancetype)init {
5454
if(self) {
5555
NSURL *url = [[NSBundle mainBundle] URLForResource:@"message" withExtension:@"wav"];
5656
_player = [[AVAudioPlayer alloc] initWithContentsOfURL:url error:nil];
57+
_player.volume = 1.0;
5758
NSURL *redPackUrl = [[NSBundle mainBundle] URLForResource:@"packet_tip" withExtension:@"wav"];
5859
_redPacketPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:redPackUrl error:nil];
60+
_redPacketPlayer.volume = 1.0;
5961
}
6062
return self;
6163
}

ios/RNNeteaseIm/RNNeteaseIm/TeamViewController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,9 @@ -(void)stopTeamList{
336336
- (NSMutableArray *)fetchTeams{
337337
NSMutableArray *myTeams = [[NSMutableArray alloc]init];
338338
for (NIMTeam *team in [NIMSDK sharedSDK].teamManager.allMyTeams) {
339-
if (team.type == NIMTeamTypeNormal) {
339+
// if (team.type == NIMTeamTypeNormal) {
340340
[myTeams addObject:team];
341-
}
341+
// }
342342
}
343343
return myTeams;
344344
}

0 commit comments

Comments
 (0)