Supported protocols (SMS) not always detected correctly
I've just come across an issue where presumably (?) the modem was not yet online/connected leaving both the chat history empty and the "add chat" button insensitive.
After killing chatty and restarting it everything is back to normal.
After looking a bit through the code has_sms
seems to be false. https://source.puri.sm/Librem5/chatty/-/blob/master/src/chatty-window.c#L959
The modem stuff is handled here: https://source.puri.sm/Librem5/chatty/-/blob/master/src/chatty-manager.c#L1472
Maybe we can periodically call manager_update_protocols
if no protocol is self->active_protocols == 0
or
self->active_protocols && CHATTY_PROTOCOL_SMS == 0
?
Apparently people can still receive SMS which will then update the protocols and "fixes" the history and plus button.
Originally reported in the Pine64 forums