diff --git a/src/base/QXmppOmemoDataBase.cpp b/src/base/QXmppOmemoDataBase.cpp index a75d54ea0..37d8a1734 100644 --- a/src/base/QXmppOmemoDataBase.cpp +++ b/src/base/QXmppOmemoDataBase.cpp @@ -60,7 +60,7 @@ bool QXmppOmemoEnvelope::isUsedForKeyExchange() const /// /// \param isUsed whether a pre-key was used to prepare this envelope /// -void QXmppOmemoEnvelope::setIsUsedForKeyExchange(bool isUsed) +void QXmppOmemoEnvelope::setUsedForKeyExchange(bool isUsed) { m_isUsedForKeyExchange = isUsed; } diff --git a/src/base/QXmppOmemoEnvelope_p.h b/src/base/QXmppOmemoEnvelope_p.h index d5eac395a..7eea55773 100644 --- a/src/base/QXmppOmemoEnvelope_p.h +++ b/src/base/QXmppOmemoEnvelope_p.h @@ -18,7 +18,7 @@ class QXMPP_EXPORT QXmppOmemoEnvelope void setRecipientDeviceId(uint32_t id); bool isUsedForKeyExchange() const; - void setIsUsedForKeyExchange(bool isUsed); + void setUsedForKeyExchange(bool isUsed); QByteArray data() const; void setData(const QByteArray &data); diff --git a/src/omemo/QXmppOmemoManager_p.cpp b/src/omemo/QXmppOmemoManager_p.cpp index 2f8ca00d6..a3245998d 100644 --- a/src/omemo/QXmppOmemoManager_p.cpp +++ b/src/omemo/QXmppOmemoManager_p.cpp @@ -1155,7 +1155,7 @@ QFuture> ManagerPrivate::encryptStanza(const T QXmppOmemoEnvelope omemoEnvelope; omemoEnvelope.setRecipientDeviceId(deviceId); if (isKeyExchange) { - omemoEnvelope.setIsUsedForKeyExchange(true); + omemoEnvelope.setUsedForKeyExchange(true); } omemoEnvelope.setData(data); omemoElement->addEnvelope(jid, omemoEnvelope); @@ -3554,7 +3554,7 @@ QFuture ManagerPrivate::sendEmptyMessage(const QString &recip QXmppOmemoEnvelope omemoEnvelope; omemoEnvelope.setRecipientDeviceId(recipientDeviceId); if (isKeyExchange) { - omemoEnvelope.setIsUsedForKeyExchange(true); + omemoEnvelope.setUsedForKeyExchange(true); } omemoEnvelope.setData(data); diff --git a/tests/qxmppomemodata/tst_qxmppomemodata.cpp b/tests/qxmppomemodata/tst_qxmppomemodata.cpp index 2048cfcf4..556892e82 100644 --- a/tests/qxmppomemodata/tst_qxmppomemodata.cpp +++ b/tests/qxmppomemodata/tst_qxmppomemodata.cpp @@ -349,7 +349,7 @@ void tst_QXmppOmemoData::testOmemoEnvelope() QXmppOmemoEnvelope omemoEnvelope2; omemoEnvelope2.setRecipientDeviceId(recipientDeviceId); - omemoEnvelope2.setIsUsedForKeyExchange(isUsedForKeyExchange); + omemoEnvelope2.setUsedForKeyExchange(isUsedForKeyExchange); omemoEnvelope2.setData(QByteArray::fromBase64(data)); QCOMPARE(omemoEnvelope2.recipientDeviceId(), recipientDeviceId); QCOMPARE(omemoEnvelope2.isUsedForKeyExchange(), isUsedForKeyExchange); @@ -500,7 +500,7 @@ void tst_QXmppOmemoData::testOmemoElement() QXmppOmemoEnvelope omemoEnvelope5; omemoEnvelope5.setRecipientDeviceId(12321); - omemoEnvelope5.setIsUsedForKeyExchange(true); + omemoEnvelope5.setUsedForKeyExchange(true); omemoEnvelope5.setData(QByteArray::fromBase64("a012U0R9WixWKUYhYipucnZOWG06akFOR3Q1NGNOOmUK")); omemoElement2.addEnvelope(QStringLiteral("romeo@montague.lit"), omemoEnvelope5);