summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/components/message_list
diff options
context:
space:
mode:
authorJulien Giannone <jgi@odoo.com>2020-09-21 18:58:55 +0000
committerSébastien Theys <seb@odoo.com>2020-09-21 20:29:32 +0000
commit8bb3b09a2abf27011e4920a9dc045fc27e1ec628 (patch)
treede8b38bf7f933f28ae2f9d9f593d885bf8b0c676 /addons/mail/static/src/components/message_list
parentd40fd8e3e29d1954f60ebbd64a319ae564b7a639 (diff)
[IMP] mail: reintroduce channel mentions, canned responses, commands
task-2280308 closes odoo/odoo#58166 X-original-commit: b63d0d2ee5f3bff24a5e1e1cd962d59bebef082d Related: odoo/enterprise#13392 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Diffstat (limited to 'addons/mail/static/src/components/message_list')
-rw-r--r--addons/mail/static/src/components/message_list/message_list.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/mail/static/src/components/message_list/message_list.js b/addons/mail/static/src/components/message_list/message_list.js
index 3189b97b627..bc1ab67bbfc 100644
--- a/addons/mail/static/src/components/message_list/message_list.js
+++ b/addons/mail/static/src/components/message_list/message_list.js
@@ -357,8 +357,8 @@ class MessageList extends Component {
*/
async _adjustFromCurrentPartnerJustPostedMessage(hint) {
const threadCache = this.threadView.threadCache;
- const { messageId } = hint.data;
- if (threadCache.isLoaded) {
+ if (threadCache.isLoaded && hint.data) {
+ const { messageId } = hint.data;
const threadCacheMessageIds = threadCache.messages.map(message => message.id);
if (threadCacheMessageIds.includes(messageId) && this.messageRefFromId(messageId)) {
if (this.props.hasScrollAdjust) {