From 53bbf08ea194a145f0c125bd981e984f907784f5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9gis=20Hanol?= <regis@hanol.fr>
Date: Wed, 13 Dec 2017 23:31:20 +0100
Subject: [PATCH] FIX: wasn't redirected to group inbox

---
 app/assets/javascripts/discourse/controllers/topic.js.es6 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/assets/javascripts/discourse/controllers/topic.js.es6 b/app/assets/javascripts/discourse/controllers/topic.js.es6
index 62190e5bcdc..f51c06b1d80 100644
--- a/app/assets/javascripts/discourse/controllers/topic.js.es6
+++ b/app/assets/javascripts/discourse/controllers/topic.js.es6
@@ -256,7 +256,7 @@ export default Ember.Controller.extend(BufferedContent, {
 
       if (topic.get('archiving')) { return; }
 
-      const backToInbox = () => this.goToInbox(topic.get("inboxGroupName"));
+      const backToInbox = () => this.gotoInbox(topic.get("inboxGroupName"));
 
       if (topic.get('message_archived')) {
         topic.moveToInbox().then(backToInbox);