We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9dc711c commit 772ec84Copy full SHA for 772ec84
lib/_internal/twilio_voice_web.dart
@@ -311,7 +311,12 @@ class TwilioVoiceWeb extends MethodChannelTwilioVoice {
311
@override
312
Future<bool?> unregister({String? accessToken}) async {
313
if (device == null) {
314
- return false;
+ return true;
315
+ }
316
+ final state = getDeviceState(device!);
317
+ if(state != DeviceState.registered) {
318
+ printDebug("Device is not registered, cannot unregister");
319
320
}
321
try {
322
device?.unregister();
0 commit comments