mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-26 23:36:59 -05:00
sendMail check if from is own identity
This commit is contained in:
parent
3401e8b49d
commit
bdad0036f5
@ -1240,6 +1240,8 @@ uint32_t p3MsgService::sendMail(
|
|||||||
};
|
};
|
||||||
|
|
||||||
if(!pCheck(!from.isNull(), "from can't be null")) return false;
|
if(!pCheck(!from.isNull(), "from can't be null")) return false;
|
||||||
|
if(!pCheck( rsIdentity->isOwnId(from),
|
||||||
|
"from must be own identity") ) return false;
|
||||||
if(!pCheck(!(to.empty() && cc.empty() && bcc.empty()),
|
if(!pCheck(!(to.empty() && cc.empty() && bcc.empty()),
|
||||||
"You must specify at least one recipient" )) return false;
|
"You must specify at least one recipient" )) return false;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user