aboutsummaryrefslogtreecommitdiff
path: root/lib/events
diff options
context:
space:
mode:
Diffstat (limited to 'lib/events')
-rw-r--r--lib/events/callanswerevent.h2
-rw-r--r--lib/events/callcandidatesevent.h2
-rw-r--r--lib/events/callhangupevent.h2
-rw-r--r--lib/events/callinviteevent.h2
4 files changed, 8 insertions, 0 deletions
diff --git a/lib/events/callanswerevent.h b/lib/events/callanswerevent.h
index 05a20aac..b5b47899 100644
--- a/lib/events/callanswerevent.h
+++ b/lib/events/callanswerevent.h
@@ -33,6 +33,8 @@ namespace QMatrixClient
const QString& sdp);
explicit CallAnswerEvent(const QString& callId, const QString& sdp);
+ bool isStateEvent() const override { return true; }
+
const int lifetime() const { return _lifetime; }
const QString& sdp() const { return _sdp; }
const QString& callId() const { return _callId; }
diff --git a/lib/events/callcandidatesevent.h b/lib/events/callcandidatesevent.h
index faf3fb7d..8e66499d 100644
--- a/lib/events/callcandidatesevent.h
+++ b/lib/events/callcandidatesevent.h
@@ -33,6 +33,8 @@ namespace QMatrixClient
explicit CallCandidatesEvent(const QString& callId,
const QJsonArray& candidates);
+ bool isStateEvent() const override { return true; }
+
const QJsonArray& candidates() const { return _candidates; }
const QString& callId() const { return _callId; }
const int version() const { return _version; }
diff --git a/lib/events/callhangupevent.h b/lib/events/callhangupevent.h
index c0f120da..57e565a6 100644
--- a/lib/events/callhangupevent.h
+++ b/lib/events/callhangupevent.h
@@ -31,6 +31,8 @@ namespace QMatrixClient
explicit CallHangupEvent(const QString& callId);
+ bool isStateEvent() const override { return true; }
+
const QString& callId() const { return _callId; }
const int version() const { return _version; }
diff --git a/lib/events/callinviteevent.h b/lib/events/callinviteevent.h
index 553a8024..029b2e3d 100644
--- a/lib/events/callinviteevent.h
+++ b/lib/events/callinviteevent.h
@@ -32,6 +32,8 @@ namespace QMatrixClient
explicit CallInviteEvent(const QString& callId, const int lifetime,
const QString& sdp);
+ bool isStateEvent() const override { return true; }
+
const int lifetime() const { return _lifetime; }
const QString& sdp() const { return _sdp; }
const QString& callId() const { return _callId; }