FIX: Allow discourse-presence to display 'editing' indicator (#2)

FIX: Allow discourse-presence to display ‘editing’ indicator (#2)

diff --git a/assets/javascripts/initializers/shared-edits-init.js.es6 b/assets/javascripts/initializers/shared-edits-init.js.es6
index c96e073..1206914 100644
--- a/assets/javascripts/initializers/shared-edits-init.js.es6
+++ b/assets/javascripts/initializers/shared-edits-init.js.es6
@@ -1,5 +1,8 @@
 import { withPluginApi } from "discourse/lib/plugin-api";
-import { on, observes } from "discourse-common/utils/decorators";
+import discourseComputed, {
+  on,
+  observes
+} from "discourse-common/utils/decorators";
 import {
   setupSharedEdit,
   teardownSharedEdit,
@@ -110,7 +113,12 @@ function initWithApi(api) {
   });
 
   api.modifyClass("model:composer", {
-    creatingSharedEdit: computed.equal("action", SHARED_EDIT_ACTION)
+    creatingSharedEdit: computed.equal("action", SHARED_EDIT_ACTION),
+
+    @discourseComputed("action")
+    editingPost() {
+      return this._super(...arguments) || this.creatingSharedEdit;
+    }
   });
 
   api.modifyClass("controller:topic", {

GitHub sha: 8311597e

This commit appears in #2 which was approved by tgxworld. It was merged by davidtaylorhq.