Browse Source

The direction was missing

master
David Lanzendörfer 8 months ago
parent
commit
e99866ff99
3 changed files with 4 additions and 4 deletions
  1. +2
    -2
      messageviewerplugin/pephelpers.cpp
  2. +1
    -1
      messageviewerplugin/viewerpluginpepinterface.cpp
  3. +1
    -1
      messageviewerplugin/viewerpluginpepinterface.h

+ 2
- 2
messageviewerplugin/pephelpers.cpp View File

@ -8,9 +8,9 @@ void pEpViewerInterface::convert_pEpMessage_to_mMessage(message m)
{
}
message* pEpViewerInterface::convert_mMessage_to_pEpMessage()
message* pEpViewerInterface::convert_mMessage_to_pEpMessage(PEP_msg_direction direction)
{
message *m = new_message();
message *m = new_message(direction);
return m;


+ 1
- 1
messageviewerplugin/viewerpluginpepinterface.cpp View File

@ -100,7 +100,7 @@ void pEpViewerInterface::decryptMessage()
std::string src, dst;
// fill the pEp message struct and turn it into a string
m = convert_mMessage_to_pEpMessage();
m = convert_mMessage_to_pEpMessage(PEP_dir_incoming);
::mime_encode_message(m, true, &ms, true);
src = std::string(ms);


+ 1
- 1
messageviewerplugin/viewerpluginpepinterface.h View File

@ -38,7 +38,7 @@ public:
private:
// glue between Akonadi and pEp:
message *convert_mMessage_to_pEpMessage();
message *convert_mMessage_to_pEpMessage(PEP_msg_direction direction);
void convert_pEpMessage_to_mMessage(message m);
void decryptMessage();


Loading…
Cancel
Save