diff options
author | Florian Orben <florian.orben@gmail.com> | 2015-10-19 21:06:09 +0200 |
---|---|---|
committer | Florian Orben <florian.orben@gmail.com> | 2015-10-19 21:06:09 +0200 |
commit | 27c2862c56296b982031c71f8a89163b77630392 (patch) | |
tree | 6c5e04f41e1623d50f3e26f8798e31774db4b039 | |
parent | 58b57acfacbae4aa4af0688ad89ba2f6c7d100ef (diff) | |
download | chat-27c2862c56296b982031c71f8a89163b77630392.tar.gz chat-27c2862c56296b982031c71f8a89163b77630392.tar.bz2 chat-27c2862c56296b982031c71f8a89163b77630392.zip |
Allow to update root comment in RHS via arrow up shortcut
-rw-r--r-- | web/react/stores/post_store.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/stores/post_store.jsx b/web/react/stores/post_store.jsx index 90adc408d..0ace956d2 100644 --- a/web/react/stores/post_store.jsx +++ b/web/react/stores/post_store.jsx @@ -240,7 +240,7 @@ class PostStoreClass extends EventEmitter { for (i; i < len; i++) { if (postList.posts[postList.order[i]].user_id === userId) { if (rootId) { - if (postList.posts[postList.order[i]].root_id === rootId) { + if (postList.posts[postList.order[i]].root_id === rootId || postList.posts[postList.order[i]].id === rootId) { lastPost = postList.posts[postList.order[i]]; break; } |