[IMP] mail, im_livechat: remove useless guards

Remove useless guards introduced in odoo/odoo#97996.

closes odoo/odoo#98147

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
Louis Wicket (wil)
2022-08-16 16:28:35 +02:00
parent 8ff00133a5
commit 83b307bb0e
2 changed files with 2 additions and 2 deletions
@@ -9,7 +9,7 @@ patchRecordMethods('ComposerView', {
* @override
*/
_computeDropZoneView() {
if (this.composer && this.composer.thread && this.composer.thread.channel && this.composer.thread.channel.channel_type === 'livechat') {
if (this.composer.thread && this.composer.thread.channel && this.composer.thread.channel.channel_type === 'livechat') {
return clear();
}
return this._super();
@@ -76,7 +76,7 @@ registerModel({
if (this.chatterOwner) {
return replace(this.chatterOwner.thread);
}
if (this.composerView && this.composerView.composer) {
if (this.composerView) {
return replace(this.composerView.composer.activeThread);
}
return clear();