diff options
| author | Alexandre Kühn <aku@odoo.com> | 2018-10-10 16:23:29 +0000 |
|---|---|---|
| committer | Alexandre Kühn <aku@odoo.com> | 2018-10-16 07:29:08 +0000 |
| commit | d3ceaa3adc82d016ee06d47d97ff61ad745e4072 (patch) | |
| tree | af272ff3864e9a398bd46bc58c8bfbce56dab7a6 /addons/web/static/src/js | |
| parent | 4531348ff08536ce9f1de8fbebbe25f2299965e3 (diff) | |
[FIX] mail: improved message_fetch for moderated channels
There was two issues with the previous code:
1. It was using a weak heuristic to determine whether the
current thread is a channel (ID is a number)
2. For any channel, it was always passing `moderated_channel_ids`
with some values to the server, even though the channel
is not moderated at all.
This commit solves both issues by passing `moderated_channel_ids`
only for moderated channel. Also, this logic has been moved from
SearchableThread to Channel, since moderation makes only sense for
channels and channels are aware of whether they are moderated or
not.
Diffstat (limited to 'addons/web/static/src/js')
0 files changed, 0 insertions, 0 deletions
