aboutsummaryrefslogtreecommitdiff
path: root/lib/e2ee
diff options
context:
space:
mode:
authorTobias Fella <fella@posteo.de>2022-04-16 23:18:14 +0200
committerTobias Fella <fella@posteo.de>2022-04-16 23:18:14 +0200
commitbcde0a74e82e7dbb9eed6b108ebbb63941da34ea (patch)
tree1c21f5f4bba2ce5275be692e5bfea628779c0044 /lib/e2ee
parent7cd71c978f39a0bd8f82ebdf01cbaaf317ebe020 (diff)
parent87e8d6d6ef325f176a7d3b5da441569f9b24c847 (diff)
downloadlibquotient-bcde0a74e82e7dbb9eed6b108ebbb63941da34ea.tar.gz
libquotient-bcde0a74e82e7dbb9eed6b108ebbb63941da34ea.zip
Merge branch 'dev' into sendmessages
Diffstat (limited to 'lib/e2ee')
-rw-r--r--lib/e2ee/qolminboundsession.cpp18
-rw-r--r--lib/e2ee/qolminboundsession.h11
2 files changed, 29 insertions, 0 deletions
diff --git a/lib/e2ee/qolminboundsession.cpp b/lib/e2ee/qolminboundsession.cpp
index 2e9cc716..60d871ef 100644
--- a/lib/e2ee/qolminboundsession.cpp
+++ b/lib/e2ee/qolminboundsession.cpp
@@ -149,3 +149,21 @@ bool QOlmInboundGroupSession::isVerified() const
{
return olm_inbound_group_session_is_verified(m_groupSession) != 0;
}
+
+QString QOlmInboundGroupSession::olmSessionId() const
+{
+ return m_olmSessionId;
+}
+void QOlmInboundGroupSession::setOlmSessionId(const QString& olmSessionId)
+{
+ m_olmSessionId = olmSessionId;
+}
+
+QString QOlmInboundGroupSession::senderId() const
+{
+ return m_senderId;
+}
+void QOlmInboundGroupSession::setSenderId(const QString& senderId)
+{
+ m_senderId = senderId;
+}
diff --git a/lib/e2ee/qolminboundsession.h b/lib/e2ee/qolminboundsession.h
index 437f753d..32112b97 100644
--- a/lib/e2ee/qolminboundsession.h
+++ b/lib/e2ee/qolminboundsession.h
@@ -41,9 +41,20 @@ public:
QByteArray sessionId() const;
bool isVerified() const;
+ //! The olm session that this session was received from.
+ //! Required to get the device this session is from.
+ QString olmSessionId() const;
+ void setOlmSessionId(const QString& setOlmSessionId);
+
+ //! The sender of this session.
+ QString senderId() const;
+ void setSenderId(const QString& senderId);
+
QOlmInboundGroupSession(OlmInboundGroupSession* session);
private:
OlmInboundGroupSession* m_groupSession;
+ QString m_olmSessionId;
+ QString m_senderId;
};
using QOlmInboundGroupSessionPtr = std::unique_ptr<QOlmInboundGroupSession>;