mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-06-27 00:36:44 +03:00
Rename MessagePgpVerify action to PgpVerifyMessage
This commit is contained in:
parent
55e55b7bb7
commit
2fa3508c11
3 changed files with 3 additions and 7 deletions
|
|
@ -206,7 +206,7 @@ export const GnuPGUserStore = new class {
|
|||
data.bodyPart = data.bodyPart.raw;
|
||||
data.sigPart = data.sigPart.body;
|
||||
}
|
||||
let response = await Remote.post('MessagePgpVerify', null, data);
|
||||
let response = await Remote.post('PgpVerifyMessage', null, data);
|
||||
if (response?.Result) {
|
||||
return {
|
||||
fingerprint: response.Result.fingerprint,
|
||||
|
|
|
|||
|
|
@ -239,7 +239,7 @@ export const OpenPGPUserStore = new class {
|
|||
data.tryGnuPG = 0;
|
||||
let response;
|
||||
if (data.sigPartId) {
|
||||
response = await Remote.post('MessagePgpVerify', null, data);
|
||||
response = await Remote.post('PgpVerifyMessage', null, data);
|
||||
} else if (data.bodyPart) {
|
||||
// MimePart
|
||||
response = { Result: { text: data.bodyPart.raw, signature: data.sigPart.body } };
|
||||
|
|
|
|||
|
|
@ -10,10 +10,6 @@ use MailSo\Mime\Enumerations\Header as MimeEnumHeader;
|
|||
|
||||
trait Pgp
|
||||
{
|
||||
/**
|
||||
* Also see trait Messages::DoMessagePgpVerify
|
||||
*/
|
||||
|
||||
public function DoGetPGPKeys() : array
|
||||
{
|
||||
$result = [];
|
||||
|
|
@ -295,7 +291,7 @@ trait Pgp
|
|||
/**
|
||||
* https://datatracker.ietf.org/doc/html/rfc3156#section-5
|
||||
*/
|
||||
public function DoMessagePgpVerify() : array
|
||||
public function DoPgpVerifyMessage() : array
|
||||
{
|
||||
$sFolderName = $this->GetActionParam('folder', '');
|
||||
$iUid = (int) $this->GetActionParam('uid', 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue