aboutsummaryrefslogtreecommitdiff
path: root/lib/room.cpp
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-05-10 22:56:02 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-05-11 16:18:00 +0200
commitb32c1c27ae412d073a7e98bdaf22678bdc66ab23 (patch)
tree79239255ac65c5c17610813496327b968fa25ca5 /lib/room.cpp
parent98fdf62391fdc5135d8324476903a4c43345e732 (diff)
downloadlibquotient-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/room.cpp')
-rw-r--r--lib/room.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/room.cpp b/lib/room.cpp
index 4ba699b0..993455be 100644
--- a/lib/room.cpp
+++ b/lib/room.cpp
@@ -2232,11 +2232,12 @@ void Room::sendCallCandidates(const QString& callId,
d->sendEvent<CallCandidatesEvent>(callId, candidates);
}
-void Room::answerCall(const QString& callId, const int lifetime,
+void Room::answerCall(const QString& callId, [[maybe_unused]] int lifetime,
const QString& sdp)
{
- Q_ASSERT(supportsCalls());
- d->sendEvent<CallAnswerEvent>(callId, lifetime, sdp);
+ qCWarning(MAIN) << "To client developer: drop lifetime parameter from "
+ "Room::answerCall(), it is no more accepted";
+ answerCall(callId, sdp);
}
void Room::answerCall(const QString& callId, const QString& sdp)