From b88f06e7bb23c6d27b6d97381480cef75410db6d Mon Sep 17 00:00:00 2001 From: Volker Birk Date: Mon, 29 Aug 2016 21:35:20 +0200 Subject: [PATCH] ... --- src/message.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/message.cc b/src/message.cc index 47210bd..2654672 100644 --- a/src/message.cc +++ b/src/message.cc @@ -297,7 +297,8 @@ namespace pEp { { if (!(_msg && _msg->from)) throw invalid_argument("from must be a valid Identity()"); - if (!(_msg && _msg->dir == PEP_dir_outgoing)) + if (!(_msg->dir == PEP_dir_outgoing && _msg->from->user_id && + strcmp(_msg->from->user_id, PEP_OWN_USERID) == 0)) throw invalid_argument("Message.dir must be outgoing"); PEP_rating rating = PEP_rating_undefined;