[IMP] mail: remove useless code in message edition

closes odoo/odoo#99487

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
This commit is contained in:
Didier (did)
2022-09-05 18:35:08 +02:00
parent 7a049df904
commit 613448162a
+1 -14
View File
@@ -240,20 +240,7 @@ registerModel({
*/
onClickSaveLink(ev) {
ev.preventDefault();
if (!this.composer.canPostMessage) {
if (this.composer.hasUploadingAttachment) {
this.messaging.notify({
message: this.env._t("Please wait while the file is uploading."),
type: 'warning',
});
}
return;
}
if (this.messageViewInEditing) {
this.updateMessage();
return;
}
this.postMessage();
this.sendMessage();
},
/**
* Called when clicking on "send" button.