[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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user