detecting if DELETE was not working

pEpMIME_windows
Volker Birk 4 years ago
parent e1837e5fcb
commit bac4eecc70

@ -1587,6 +1587,10 @@ PEP_STATUS pgp_delete_keypair(PEP_SESSION session, const char *fpr)
if (sqlite_result != SQLITE_OK)
return PEP_CANNOT_DELETE_KEY;
sqlite_result = sqlite3_changes(session->key_db);
if (sqlite_result < 1)
return PEP_KEY_NOT_FOUND;
return PEP_STATUS_OK;
}

@ -225,6 +225,7 @@ protocol Sync 1 {
state NewGroupFirst {
on Init {
do closeTransaction;
do prepareOwnKeys;
send OwnKeysFirst; // we're not grouped yet, this is our own keys
}
@ -243,6 +244,7 @@ protocol Sync 1 {
state NewGroupSecond {
on Init {
do closeTransaction;
do prepareOwnKeys;
send OwnKeysSecond; // we're not grouped yet, this is our own keys
}
@ -360,11 +362,12 @@ protocol Sync 1 {
state JoinGroup {
on Init {
do closeTransaction;
do prepareOwnKeys;
send GroupKeys;
send OwnKeys;
}
on GroupKeys if sameTransaction {
on GroupKeys {
do saveGroupKeys;
do receivedKeysAreGroupKeys;
do showDeviceAdded;

Loading…
Cancel
Save