File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -85,8 +85,8 @@ class Device extends Twilio {
8585
8686 /// Get current call status, see [DeviceState]
8787 /// Documentation: https://www.twilio.com/docs/voice/sdks/javascript/twiliodevice#devicestate
88- @JS ("status " )
89- external String state () ;
88+ @JS ("state " )
89+ external String get state;
9090
9191 /// Update the device's access token.
9292 /// Documentation: https://www.twilio.com/docs/voice/sdks/javascript/twiliodevice#deviceupdatetokentoken
Original file line number Diff line number Diff line change @@ -564,8 +564,7 @@ class TwilioVoiceWeb extends MethodChannelTwilioVoice {
564564 }
565565
566566 DeviceState getDeviceState (twilio_js.Device device) {
567- final status = device.state ();
568- return parseDeviceState (status);
567+ return parseDeviceState (device.state);
569568 }
570569}
571570
You can’t perform that action at this time.
0 commit comments