Friday, April 14, 2023
3 changes · master
Resolved issues and error corrections
This fixes an issue where live chat unread message counts could be calculated incorrectly after a recent internal change. It helps agents see accurate unread message indicators, reducing the risk of missed customer conversations.
Original PR description
Since [1], the way the message unread counter is computed has changed. The patch of the `im_livechat` module is not adapted properly. This commit fixes this issue. [1]: 6ebe033b00774ed8824d05f0adf9dae5f3654261
Odoo now safely ignores link preview notifications for messages that have not been loaded yet. This prevents a crash in Discuss or mail flows and lets the preview data arrive normally when the message is fetched later.
Original PR description
This notification makes sense when we know this message. If we don't know it yet, then we should just ignore and receive data of link preview when fetching the message.
Opening dynamic placeholder popovers no longer causes an error. This improves reliability for users working with text fields that use dynamic placeholders.
Original PR description
[FIX] web: fix traceback in useDynamicPlaceholder **Before this commit** Since https://github.com/odoo/odoo/commit/394f85c954fabc4d5cf7c715c75298bb89bb165f anytime this hook opens a popover, a traceback occurs. It is due to the fact this hook passes a callback as a getter-only property to the usePopover hook options. The traceback occur because the usePopover hook has to reassign this option (onClose callback). **After this commit** Fixed and tested.