1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-11-17 16:05:36 +00:00

ui-call-data: Don't use deprecated states in mapping

For the UI we don't distinguish between dialing and alerting or between
waiting and incoming.
This commit is contained in:
Evangelos Ribeiro Tzaras 2022-01-18 02:33:06 +01:00
parent 6e9fadbee2
commit 4bc8e82ff6

View file

@ -72,11 +72,11 @@ calls_state_to_cui_call_state (CallsCallState state)
case CALLS_CALL_STATE_DIALING: case CALLS_CALL_STATE_DIALING:
return CUI_CALL_STATE_DIALING; return CUI_CALL_STATE_DIALING;
case CALLS_CALL_STATE_ALERTING: case CALLS_CALL_STATE_ALERTING:
return CUI_CALL_STATE_ALERTING; return CUI_CALL_STATE_DIALING;
case CALLS_CALL_STATE_INCOMING: case CALLS_CALL_STATE_INCOMING:
return CUI_CALL_STATE_INCOMING; return CUI_CALL_STATE_INCOMING;
case CALLS_CALL_STATE_WAITING: case CALLS_CALL_STATE_WAITING:
return CUI_CALL_STATE_WAITING; return CUI_CALL_STATE_INCOMING;
case CALLS_CALL_STATE_DISCONNECTED: case CALLS_CALL_STATE_DISCONNECTED:
return CUI_CALL_STATE_DISCONNECTED; return CUI_CALL_STATE_DISCONNECTED;
default: default: