summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/models/follower/follower.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/mail/static/src/models/follower/follower.js')
-rw-r--r--addons/mail/static/src/models/follower/follower.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/addons/mail/static/src/models/follower/follower.js b/addons/mail/static/src/models/follower/follower.js
index e5be843d7ce..6fb83649e2e 100644
--- a/addons/mail/static/src/models/follower/follower.js
+++ b/addons/mail/static/src/models/follower/follower.js
@@ -64,6 +64,16 @@ function factory(dependencies) {
}
/**
+ * Opens the most appropriate view that is a profile for this follower.
+ */
+ async openProfile() {
+ if (this.partner) {
+ return this.partner.openProfile();
+ }
+ return this.channel.openProfile();
+ }
+
+ /**
* Remove this follower from its related thread.
*/
async remove() {