mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-22 10:06:44 +00:00
feat(GODT-3046): removed 'No active key for recipient.
This commit is contained in:
@ -528,19 +528,6 @@ SPStreamEvent newRebuildKeychainEvent() {
|
||||
}
|
||||
|
||||
|
||||
//****************************************************************************************************************************************************
|
||||
/// \param[in] email The email.
|
||||
/// \return The event.
|
||||
//****************************************************************************************************************************************************
|
||||
SPStreamEvent newNoActiveKeyForRecipientEvent(QString const &email) {
|
||||
auto event = new grpc::NoActiveKeyForRecipientEvent;
|
||||
event->set_email(email.toStdString());
|
||||
auto mailEvent = new grpc::MailEvent;
|
||||
mailEvent->set_allocated_noactivekeyforrecipientevent(event);
|
||||
return wrapMailEvent(mailEvent);
|
||||
}
|
||||
|
||||
|
||||
//****************************************************************************************************************************************************
|
||||
/// \param[in] address The address.
|
||||
/// /// \return The event.
|
||||
|
||||
@ -73,7 +73,6 @@ SPStreamEvent newHasNoKeychainEvent(); ///< Create a new HasNoKeychainEvent even
|
||||
SPStreamEvent newRebuildKeychainEvent(); ///< Create a new RebuildKeychainEvent event.
|
||||
|
||||
// Mail related events
|
||||
SPStreamEvent newNoActiveKeyForRecipientEvent(QString const &email); ///< Create a new NoActiveKeyForRecipientEvent event.
|
||||
SPStreamEvent newAddressChangedEvent(QString const &address); ///< Create a new AddressChangedEvent event.
|
||||
SPStreamEvent newAddressChangedLogoutEvent(QString const &address); ///< Create a new AddressChangedLogoutEvent event.
|
||||
SPStreamEvent newApiCertIssueEvent(); ///< Create a new ApiCertIssueEvent event.
|
||||
|
||||
@ -1401,12 +1401,6 @@ void GRPCClient::processKeychainEvent(KeychainEvent const &event) {
|
||||
//****************************************************************************************************************************************************
|
||||
void GRPCClient::processMailEvent(MailEvent const &event) {
|
||||
switch (event.event_case()) {
|
||||
case MailEvent::kNoActiveKeyForRecipientEvent: {
|
||||
QString const email = QString::fromStdString(event.noactivekeyforrecipientevent().email());
|
||||
this->logTrace(QString("Mail event received: NoActiveKeyForRecipient (email = %1).").arg(email));
|
||||
emit noActiveKeyForRecipient(email);
|
||||
break;
|
||||
}
|
||||
case MailEvent::kAddressChanged:
|
||||
this->logTrace("Mail event received: AddressChanged.");
|
||||
emit addressChanged(QString::fromStdString(event.addresschanged().address()));
|
||||
|
||||
@ -213,7 +213,6 @@ signals:
|
||||
void certIsReady();
|
||||
|
||||
signals: // mail related events
|
||||
void noActiveKeyForRecipient(QString const &email);
|
||||
void addressChanged(QString const &address);
|
||||
void addressChangedLogout(QString const &address);
|
||||
void apiCertIssue();
|
||||
|
||||
Reference in New Issue
Block a user