From ef9c35a5cd672ac850415fa4238a966faa2b8191 Mon Sep 17 00:00:00 2001 From: "Sanjay Gohel (Open ERP)" Date: Mon, 26 Nov 2012 18:02:03 +0530 Subject: [PATCH] [IMP]improve code bzr revid: sgo@tinyerp.com-20121126123203-3qrbp9p8cgpcfd2y --- addons/mail/static/src/js/mail_followers.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/addons/mail/static/src/js/mail_followers.js b/addons/mail/static/src/js/mail_followers.js index 721dc20b7d2..4a3bc04a6ce 100644 --- a/addons/mail/static/src/js/mail_followers.js +++ b/addons/mail/static/src/js/mail_followers.js @@ -238,9 +238,6 @@ openerp_mail_followers = function(session, mail) { checklist.push(parseInt($(record).data('id'))); } }); - if (!checklist.length) { - return self.do_unfollow(); - } var context = new session.web.CompoundContext(this.build_context(), {}); return this.ds_model.call('message_subscribe_users', [[this.view.datarecord.id], [this.session.uid], this.message_is_follower ? checklist : undefined, context]) .then(this.proxy('read_value'));