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