diff --git a/addons/im_livechat/models/discuss_channel.py b/addons/im_livechat/models/discuss_channel.py
index 62db9106c0a..b0fe38efe7a 100644
--- a/addons/im_livechat/models/discuss_channel.py
+++ b/addons/im_livechat/models/discuss_channel.py
@@ -109,8 +109,10 @@ class DiscussChannel(models.Model):
message_body = '
' % (''.join(html_links))
self._send_transient_message(self.env['res.partner'].browse(pid), message_body)
- def _message_update_content(self, message, body, attachment_ids=None, strict=True, **kwargs):
- super()._message_update_content(message=message, body=body, attachment_ids=attachment_ids, strict=strict, **kwargs)
+ def _message_update_content(self, message, body, attachment_ids=None, partner_ids=None, strict=True, **kwargs):
+ super()._message_update_content(
+ message=message, body=body, attachment_ids=attachment_ids, partner_ids=partner_ids, strict=strict, **kwargs
+ )
if self.channel_type == 'livechat':
self.env['bus.bus']._sendone(self.uuid, 'mail.record/insert', {
'Message': {
diff --git a/addons/mail/controllers/thread.py b/addons/mail/controllers/thread.py
index ddbb8cb698e..601b468e3f1 100644
--- a/addons/mail/controllers/thread.py
+++ b/addons/mail/controllers/thread.py
@@ -83,7 +83,7 @@ class ThreadController(http.Controller):
return message_data
@http.route("/mail/message/update_content", methods=["POST"], type="json", auth="public")
- def mail_message_update_content(self, message_id, body, attachment_ids, partner_ids):
+ def mail_message_update_content(self, message_id, body, attachment_ids, partner_ids=None):
guest = request.env["mail.guest"]._get_guest_from_request(request)
message_sudo = guest.env["mail.message"].browse(message_id).sudo().exists()
if not message_sudo.is_current_user_or_guest_author and not guest.env.user._is_admin():