Skip to content

Commit

Permalink
chore(raise-hand): remove asynchronous
Browse files Browse the repository at this point in the history
  • Loading branch information
lambiengcode committed Oct 27, 2024
1 parent c9ddd25 commit 263a417
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/core/webrtc/webrtc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ class WaterbusWebRTCManagerIpml extends WaterbusWebRTCManager {
}

@override
Future<void> toggleRaiseHand() async {
void toggleRaiseHand() {
if (_mParticipant == null) return;

_mParticipant!.isHandRaising = !_mParticipant!.isHandRaising;
Expand Down
2 changes: 1 addition & 1 deletion lib/core/webrtc/webrtc_interface.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ abstract class WaterbusWebRTCManager {
Future<void> toggleSpeakerPhone({bool? forceValue});
Future<void> toggleVideo();
Future<void> switchCamera();
Future<void> toggleRaiseHand();
void toggleRaiseHand();
void setE2eeEnabled({required String targetId, required bool isEnabled});
void setVideoEnabled({required String targetId, required bool isEnabled});
void setCameraType({required String targetId, required CameraType type});
Expand Down
4 changes: 2 additions & 2 deletions lib/flutter_waterbus_sdk.dart
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ class WaterbusSdk {
await _sdk.toggleAudio();
}

Future<void> toggleRaiseHand() async {
await _sdk.toggleRaiseHand();
void toggleRaiseHand() {
_sdk.toggleRaiseHand();
}

Future<void> toggleSpeakerPhone() async {
Expand Down
4 changes: 2 additions & 2 deletions lib/waterbus_sdk_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,8 @@ class SdkCore extends WaterbusSdkInterface {
}

@override
Future<void> toggleRaiseHand() async {
await _rtcManager.toggleRaiseHand();
void toggleRaiseHand() {
_rtcManager.toggleRaiseHand();
}

@override
Expand Down
2 changes: 1 addition & 1 deletion lib/waterbus_sdk_interface.dart
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ abstract class WaterbusSdkInterface {
Future<bool> stopRecord();
Future<void> leaveRoom();

Future<void> toggleRaiseHand();
void toggleRaiseHand();

// white board
Future<void> startWhiteBoard();
Expand Down

0 comments on commit 263a417

Please sign in to comment.