Browse Source

🚑 mail_base: fixed bug, where some notification messages are incorrectly marked as read

pull/245/head
Eugene Molotov 5 years ago
parent
commit
211167f101
  1. 2
      mail_base/__manifest__.py
  2. 5
      mail_base/doc/changelog.rst
  3. 4
      mail_base/static/lib/base.js

2
mail_base/__manifest__.py

@ -7,7 +7,7 @@
"summary": """Makes Mail extendable""",
"category": "Discuss",
"images": [],
"version": "11.0.1.1.0",
"version": "11.0.1.1.1",
"author": "IT-Projects LLC, Pavel Romanchenko",
"support": "apps@it-projects.info",

5
mail_base/doc/changelog.rst

@ -1,3 +1,8 @@
`1.1.1`
-------
**Fix**: Messages were marked as read, while there were not
`1.1.0`
-------
- **New**: added ability to select channels for private message sending.

4
mail_base/static/lib/base.js

@ -986,7 +986,9 @@ chat_manager.get_messages = function (options) {
if ('ids' in options) {
// get messages from their ids (chatter is the main use case)
return this._fetchDocumentMessages(options.ids, options).then(function(result) {
chat_manager.mark_as_read(options.ids);
if (options.shouldMarkAsRead) {
chat_manager.mark_as_read(options.ids);
}
return result;
});
}

Loading…
Cancel
Save