diff --git a/addons/mail/static/src/models/messaging/messaging.js b/addons/mail/static/src/models/messaging/messaging.js index 6058daa03f1..7ec3b8c5e71 100644 --- a/addons/mail/static/src/models/messaging/messaging.js +++ b/addons/mail/static/src/models/messaging/messaging.js @@ -354,7 +354,7 @@ registerModel({ ringingThreads: one2many('mail.thread', { inverse: 'messagingAsRingingThread', }), - rtc: one2one('mail.rtc', { + rtc: one2one('Rtc', { default: insertAndReplace(), isCausal: true, readonly: true, diff --git a/addons/mail/static/src/models/rtc/rtc.js b/addons/mail/static/src/models/rtc/rtc.js index e54622e181d..25d70c181d1 100644 --- a/addons/mail/static/src/models/rtc/rtc.js +++ b/addons/mail/static/src/models/rtc/rtc.js @@ -23,7 +23,7 @@ const getRTCPeerNotificationNextTemporaryId = (function () { })(); registerModel({ - name: 'mail.rtc', + name: 'Rtc', identifyingFields: ['messaging'], lifecycleHooks: { _created() { diff --git a/addons/mail/static/src/models/rtc_session/rtc_session.js b/addons/mail/static/src/models/rtc_session/rtc_session.js index afeb2d3f22a..fba96982343 100644 --- a/addons/mail/static/src/models/rtc_session/rtc_session.js +++ b/addons/mail/static/src/models/rtc_session/rtc_session.js @@ -405,7 +405,7 @@ registerModel({ * sessions from other channels with the same partner (sessions opened from different * tabs or devices). */ - rtc: one2one('mail.rtc', { + rtc: one2one('Rtc', { inverse: 'currentRtcSession', }), /** diff --git a/addons/mail/static/src/models/thread/thread.js b/addons/mail/static/src/models/thread/thread.js index 53ffdb6f4ff..d0d2cbd670c 100644 --- a/addons/mail/static/src/models/thread/thread.js +++ b/addons/mail/static/src/models/thread/thread.js @@ -2320,7 +2320,7 @@ registerModel({ /** * If set, the current thread is the thread that hosts the current RTC call. */ - rtc: one2one('mail.rtc', { + rtc: one2one('Rtc', { inverse: 'channel', }), /**