aboutsummaryrefslogtreecommitdiff
path: root/lib/events/callinviteevent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/events/callinviteevent.cpp')
-rw-r--r--lib/events/callinviteevent.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/events/callinviteevent.cpp b/lib/events/callinviteevent.cpp
index 2f26a1cb..0232275b 100644
--- a/lib/events/callinviteevent.cpp
+++ b/lib/events/callinviteevent.cpp
@@ -27,16 +27,9 @@ m.call.invite
using namespace Quotient;
-CallInviteEvent::CallInviteEvent(const QJsonObject& obj)
- : CallEventBase(typeId(), obj)
-{
- qCDebug(EVENTS) << "Call Invite event";
-}
-
CallInviteEvent::CallInviteEvent(const QString& callId, int lifetime,
const QString& sdp)
- : CallEventBase(
- typeId(), matrixTypeId(), callId, 0,
+ : EventTemplate<CallInviteEvent, CallEventBase>(callId,
{ { QStringLiteral("lifetime"), lifetime },
{ QStringLiteral("offer"),
QJsonObject { { QStringLiteral("type"), QStringLiteral("offer") },