Crash when sending a new message to unknown contact using phone number only
Using 4539da80 (with fix-some-bugs
but that shouldn't affect this) on XA2, Whisperfish crashes when sending a message:
- Open Whisperfish
- Select 'New Message' from pull-down menu
- Type the int'l phone number in the recipient field
- The recipient is not in phone address book
- The recipient is not a known contact in Whisperfish (this is known not to work)
- Type a message and hit send
[D] onSelectionChanged:122 - Selected recipient number: +32xxx
[2022-11-20T08:33:51Z TRACE whisperfish::actor::messageactor] MessageActor::handle(QueueMessage { session_id: -1885647218, message: "Test 3", attachment: "", quote: 0 })
thread 'main' panicked at 'existing session when sending', whisperfish/src/actor/messageactor.rs:236:14
stack backtrace:
0: 0x350b764 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h6b93fe4a3aa77880
1: 0x3585e4c - core::fmt::write::hb5e583c7267b95b1
2: 0x34fde14 - std::io::Write::write_fmt::he9a3d42c193da2b1
3: 0x350f8e0 - std::panicking::default_hook::{{closure}}::h4a48a6a48fb5e830
4: 0x350f2a8 - std::panicking::default_hook::he08b43b8697c6c2c
5: 0x35102b8 - std::panicking::rust_panic_with_hook::h31ecd1b9f716ece0
6: 0x350fe08 - std::panicking::begin_panic_handler::{{closure}}::hed58b2c719101f76
7: 0x350bd18 - std::sys_common::backtrace::__rust_end_short_backtrace::h7de062baceb36e59
8: 0x350fd50 - rust_begin_unwind
9: 0x35818e0 - core::panicking::panic_fmt::hc3b735dba878f55d
10: 0x358151c - core::option::expect_failed::h3c7c1570dbd31c81
session_id: -1885647218