From 211167f101a45a093fdc42c7719622f9b5b8e528 Mon Sep 17 00:00:00 2001 From: Eugene Molotov Date: Fri, 25 Oct 2019 12:47:57 +0000 Subject: [PATCH] :ambulance: mail_base: fixed bug, where some notification messages are incorrectly marked as read --- mail_base/__manifest__.py | 2 +- mail_base/doc/changelog.rst | 5 +++++ mail_base/static/lib/base.js | 4 +++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/mail_base/__manifest__.py b/mail_base/__manifest__.py index 12d535e..769c355 100644 --- a/mail_base/__manifest__.py +++ b/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", diff --git a/mail_base/doc/changelog.rst b/mail_base/doc/changelog.rst index 8825558..83589b0 100644 --- a/mail_base/doc/changelog.rst +++ b/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. diff --git a/mail_base/static/lib/base.js b/mail_base/static/lib/base.js index a00f7bc..fa9dcbe 100644 --- a/mail_base/static/lib/base.js +++ b/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; }); }