diff options
Diffstat (limited to 'src/ring-connection.c')
-rw-r--r-- | src/ring-connection.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/ring-connection.c b/src/ring-connection.c index dfe165d..bda967e 100644 --- a/src/ring-connection.c +++ b/src/ring-connection.c @@ -1056,12 +1056,19 @@ ring_connection_modem_connected(ModemService *modem, } } - if (!ring_text_manager_start_connecting(priv->text, - modem_path, &error)) { + /* + * XXX if sms atom is added after transition to online + * we don't ever get text manager connected + * Only way to use SMS is to start ring after modem is in online + */ + if (modem_service_supports_sms(modem)) { + if (!ring_text_manager_start_connecting(priv->text, + modem_path, &error)) { - DEBUG("ring_text_manager_start_connecting: " GERROR_MSG_FMT, - GERROR_MSG_CODE(error)); - g_clear_error(&error); + DEBUG("ring_text_manager_start_connecting: " GERROR_MSG_FMT, + GERROR_MSG_CODE(error)); + g_clear_error(&error); + } } } |