1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2025-01-06 03:25:31 +00:00

calls-mm-call: Map MM_CALL_STATE_UNKNOWN to CALLS_CALL_STATE_DIALING instead of 0

This actually makes sense in the mapping; the only time an MM call is
in MM_CALL_STATE_UNKNOWN is when it's an outgoing call that hasn't
been started.  It also helps avoid a lot of needless issues dealing
with the Calls call state.
This commit is contained in:
Bob Ham 2019-07-22 11:52:31 +01:00
parent 2f82dcaab6
commit b1a743b757

View file

@ -171,6 +171,7 @@ static const struct CallsMMCallStateMap STATE_MAP[] = {
#define row(MMENUM,CALLSENUM) \
{ MM_CALL_STATE_##MMENUM, CALLS_CALL_STATE_##CALLSENUM, #MMENUM } \
row (UNKNOWN, DIALING),
row (DIALING, DIALING),
row (RINGING_OUT, ALERTING),
row (RINGING_IN, INCOMING),
@ -181,7 +182,6 @@ static const struct CallsMMCallStateMap STATE_MAP[] = {
#undef row
{ MM_CALL_STATE_UNKNOWN, (CallsCallState)0 },
{ -1, -1 }
};