diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-05-10 22:56:02 +0200 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-05-11 16:18:00 +0200 |
commit | b32c1c27ae412d073a7e98bdaf22678bdc66ab23 (patch) | |
tree | 79239255ac65c5c17610813496327b968fa25ca5 /lib/events | |
parent | 98fdf62391fdc5135d8324476903a4c43345e732 (diff) | |
download | libquotient-b32c1c27ae412d073a7e98bdaf22678bdc66ab23.tar.gz libquotient-b32c1c27ae412d073a7e98bdaf22678bdc66ab23.zip |
CallAnswerEvent: drop lifetime
See https://github.com/matrix-org/matrix-spec/pull/1054.
# Conflicts:
# lib/events/callanswerevent.cpp
# lib/events/callanswerevent.h
Diffstat (limited to 'lib/events')
-rw-r--r-- | lib/events/callanswerevent.cpp | 11 | ||||
-rw-r--r-- | lib/events/callanswerevent.h | 4 |
2 files changed, 0 insertions, 15 deletions
diff --git a/lib/events/callanswerevent.cpp b/lib/events/callanswerevent.cpp index be83d9d0..f75f8ad3 100644 --- a/lib/events/callanswerevent.cpp +++ b/lib/events/callanswerevent.cpp @@ -14,7 +14,6 @@ m.call.answer "type": "answer" }, "call_id": "12345", - "lifetime": 60000, "version": 0 }, "event_id": "$WLGTSEFSEF:localhost", @@ -33,16 +32,6 @@ CallAnswerEvent::CallAnswerEvent(const QJsonObject& obj) qCDebug(EVENTS) << "Call Answer event"; } -CallAnswerEvent::CallAnswerEvent(const QString& callId, const int lifetime, - const QString& sdp) - : CallEventBase( - typeId(), matrixTypeId(), callId, 0, - { { QStringLiteral("lifetime"), lifetime }, - { QStringLiteral("answer"), - QJsonObject { { QStringLiteral("type"), QStringLiteral("answer") }, - { QStringLiteral("sdp"), sdp } } } }) -{} - CallAnswerEvent::CallAnswerEvent(const QString& callId, const QString& sdp) : CallEventBase( typeId(), matrixTypeId(), callId, 0, diff --git a/lib/events/callanswerevent.h b/lib/events/callanswerevent.h index 70292a7a..4d539b85 100644 --- a/lib/events/callanswerevent.h +++ b/lib/events/callanswerevent.h @@ -13,12 +13,8 @@ public: explicit CallAnswerEvent(const QJsonObject& obj); - explicit CallAnswerEvent(const QString& callId, const int lifetime, - const QString& sdp); explicit CallAnswerEvent(const QString& callId, const QString& sdp); - QUO_CONTENT_GETTER(int, lifetime) // FIXME: Omittable<>? - QString sdp() const { return contentPart<QJsonObject>("answer"_ls).value("sdp"_ls).toString(); |