diff options
| author | Alexandre Kühn <aku@odoo.com> | 2018-08-11 21:09:58 +0200 |
|---|---|---|
| committer | Alexandre Kühn <aku@odoo.com> | 2018-08-13 14:17:27 +0200 |
| commit | 614f9f84d7da281b0feacc39a612c19193f3a4d8 (patch) | |
| tree | 24b9336a7b69c8b38fb37614cbc89c61c731829d /addons/mail/static/src/xml | |
| parent | e0a51edd856b36bfdf1cacb4d7e8d70fad7884fa (diff) | |
[FIX] mail: display new messages on reload for document threads without any name
A document thread is a JS-only entity, which is built from data on
'mail.message' received from the server, or from data of a document.
When we detect a change on the message IDs related to a document thread,
we should update this list on the document thread, so that it knows which
messages haven't be fetched from the server yet.
However, the list of message IDs was not updated on a document thread when
no name could be provided to the document thread, which occurs when there
is no no `display_name` data to determine on the record's name.
In this case, it should update the list of message IDs on this document thread
without altering document name. However, it was neither changing the document
name nor updating the message IDs.
This commit fixes this issue by independently update message IDs and the
document name of a document thread.
Diffstat (limited to 'addons/mail/static/src/xml')
0 files changed, 0 insertions, 0 deletions
