From b1a743b757c53888d75362cc936e945e6ab72c2b Mon Sep 17 00:00:00 2001 From: Bob Ham Date: Mon, 22 Jul 2019 11:52:31 +0100 Subject: [PATCH] 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. --- plugins/mm/calls-mm-call.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mm/calls-mm-call.c b/plugins/mm/calls-mm-call.c index a7c304b..b8f1b7a 100644 --- a/plugins/mm/calls-mm-call.c +++ b/plugins/mm/calls-mm-call.c @@ -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 } };