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:
parent
2f82dcaab6
commit
b1a743b757
1 changed files with 1 additions and 1 deletions
|
@ -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 }
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue