|
@ -1,4 +1,5 @@ |
|
|
#include "callback_dispatcher.hh" |
|
|
#include "callback_dispatcher.hh" |
|
|
|
|
|
#include "passphrase_cache.hh" |
|
|
#include <stdexcept> |
|
|
#include <stdexcept> |
|
|
#include <cassert> |
|
|
#include <cassert> |
|
|
|
|
|
|
|
@ -87,6 +88,9 @@ namespace pEp { |
|
|
|
|
|
|
|
|
PEP_STATUS CallbackDispatcher::_messageToSend(::message *msg) |
|
|
PEP_STATUS CallbackDispatcher::_messageToSend(::message *msg) |
|
|
{ |
|
|
{ |
|
|
|
|
|
if (Adapter::on_sync_thread() && !msg) |
|
|
|
|
|
return PassphraseCache::messageToSend(passphrase_cache, Adapter::session()); |
|
|
|
|
|
|
|
|
for (auto target : targets) { |
|
|
for (auto target : targets) { |
|
|
::message *_msg = nullptr; |
|
|
::message *_msg = nullptr; |
|
|
if (msg) { |
|
|
if (msg) { |
|
|