Browse Source

🚑 fix random error when we open the pop-up chat window and reload the page

pull/324/head
Denis Mudarisov 4 years ago
parent
commit
12a2230674
No known key found for this signature in database GPG Key ID: B9AD74DAFB7B53DA
  1. 3
      mail_to/__manifest__.py
  2. 5
      mail_to/doc/changelog.rst
  3. 4
      mail_to/static/src/js/mail_to.js

3
mail_to/__manifest__.py

@ -2,13 +2,14 @@
# Copyright 2016,2020 Ivan Yelizariev <https://it-projects.info/team/yelizariev> # Copyright 2016,2020 Ivan Yelizariev <https://it-projects.info/team/yelizariev>
# Copyright 2018 Ruslan Ronzhin # Copyright 2018 Ruslan Ronzhin
# Copyright 2019 Artem Rafailov <https://it-projects.info/team/Ommo73/> # Copyright 2019 Artem Rafailov <https://it-projects.info/team/Ommo73/>
# Copyright 2020 Denis Mudarisov <https://github.com/trojikman>
# License MIT (https://opensource.org/licenses/MIT). # License MIT (https://opensource.org/licenses/MIT).
{ {
"name": """Show message recipients""", "name": """Show message recipients""",
"summary": """Allows you be sure, that all discussion participants were notified""", "summary": """Allows you be sure, that all discussion participants were notified""",
"category": "Discuss", "category": "Discuss",
"images": ["images/1.png"], "images": ["images/1.png"],
"version": "11.0.1.1.1",
"version": "11.0.1.1.2",
"author": "IT-Projects LLC, Pavel Romanchenko", "author": "IT-Projects LLC, Pavel Romanchenko",
"support": "apps@itpp.dev", "support": "apps@itpp.dev",
"website": "https://it-projects.info", "website": "https://it-projects.info",

5
mail_to/doc/changelog.rst

@ -1,3 +1,8 @@
`1.1.2`
-------
- **Fix** if open the pop-up chat window and reload the page, then an error might occur randomly
`1.1.1` `1.1.1`
------- -------

4
mail_to/static/src/js/mail_to.js

@ -2,12 +2,15 @@
* Copyright 2016-2017,2020 Ivan Yelizariev <https://it-projects.info/team/yelizariev> * Copyright 2016-2017,2020 Ivan Yelizariev <https://it-projects.info/team/yelizariev>
* Copyright 2017 Artyom Losev <https://it-projects.info/> * Copyright 2017 Artyom Losev <https://it-projects.info/>
* Copyright 2019 Artem Rafailov <https://it-projects.info/team/Ommo73/> * Copyright 2019 Artem Rafailov <https://it-projects.info/team/Ommo73/>
* Copyright 2020 Denis Mudarisov <https://github.com/trojikman>
* License MIT (https://opensource.org/licenses/MIT). */ * License MIT (https://opensource.org/licenses/MIT). */
odoo.define("mail_to.MailTo", function(require) { odoo.define("mail_to.MailTo", function(require) {
"use strict"; "use strict";
var chat_manager = require("mail_base.base").chat_manager; var chat_manager = require("mail_base.base").chat_manager;
chat_manager.is_ready = chat_manager.is_ready.then(function(){
var make_message_super = chat_manager.make_message; var make_message_super = chat_manager.make_message;
chat_manager.make_message = function(data) { chat_manager.make_message = function(data) {
var msg = make_message_super.call(this, data); var msg = make_message_super.call(this, data);
@ -35,6 +38,7 @@ odoo.define("mail_to.MailTo", function(require) {
msg.more_recipients = more_recipients; msg.more_recipients = more_recipients;
return msg; return msg;
}; };
});
return chat_manager; return chat_manager;
}); });
Loading…
Cancel
Save