From 99f49ca08dbbec230200921bbbe9b42f2f7e29da Mon Sep 17 00:00:00 2001 From: Thanh Dodeur Date: Thu, 6 Oct 2022 13:23:11 +0000 Subject: [PATCH] [FIX] mail: prevent traceback on reconnecting to call MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before this commit, when reconnecting to a call that was still holding a participantCard of an outdated rtcSession a crash would occur as joining a call removes all your previous rtcSessions while generating a new one while having a `isCausal` on their participantCards. This commit removes this `isCausal` as the rtcSession of a channelMember/participantCard should be able to change over time. closes odoo/odoo#102498 X-original-commit: c903852de3e6d4b99600797c7b426e2e3dfa4bea Signed-off-by: Sébastien Theys (seb) --- addons/mail/static/src/models/rtc_session.js | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/mail/static/src/models/rtc_session.js b/addons/mail/static/src/models/rtc_session.js index ec2e64c8904..bffe383ae5b 100644 --- a/addons/mail/static/src/models/rtc_session.js +++ b/addons/mail/static/src/models/rtc_session.js @@ -340,7 +340,6 @@ registerModel({ */ callParticipantCards: many('CallParticipantCard', { inverse: 'rtcSession', - isCausal: true, }), /** * States whether there is currently an error with the audio element.