Skip to content
Snippets Groups Projects
Commit 4c28a6fd authored by Thanh Dodeur's avatar Thanh Dodeur
Browse files

[FIX] mail: ensures the usage of rtc session id for type consistency


Before this commit, mismatching types between String and Number would
cause inserts to register a change.

`rtc.js` used `rtcSession.peerToken`(String) and `rtcSession.id`(number)
interchangeably, this commit fixes this issue by favoring the usage
of `rtcSession.id` and `mail.RtcSession` when possible.

closes odoo/odoo#86580

Signed-off-by: default avatarAlexandre Kühn (aku) <aku@odoo.com>
parent 1df5ff68
No related branches found
No related tags found
No related merge requests found
......@@ -422,7 +422,7 @@ registerModel({
/**
* @private
* @param {Object} data
* @param {string} data.sender
* @param {number} data.sender
* @param {string[]} data.notifications
*/
_handleNotificationRtcPeerToPeer({ sender, notifications }) {
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment