Skip to content
Commit 34f07473 authored by Smitty van Bodegom's avatar Smitty van Bodegom
Browse files

Fix failed assert when messaging non-contact

In src/messagemodel.cpp, sendMessage gets the most recent message:
    result = co_await sendMessageInternal(m_phoneNumberList.first(), text);
This fails if m_phoneNumberList is empty (and thus has no first
element). The lack of phone numbers is ultimately caused in
src/contents/ui/NewConversationPage.qml, which doesn't include the
search field when creating a conversation. This fixes it to include the
search as a phone number if no contacts are selected.

Closes #35.
parent 4f42d517
Pipeline #122158 failed with stage
in 28 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment