summaryrefslogtreecommitdiffstats
path: root/web/react/stores/post_store.jsx
diff options
context:
space:
mode:
authorFlorian Orben <florian.orben@gmail.com>2015-10-19 21:06:09 +0200
committerFlorian Orben <florian.orben@gmail.com>2015-10-19 21:06:09 +0200
commit27c2862c56296b982031c71f8a89163b77630392 (patch)
tree6c5e04f41e1623d50f3e26f8798e31774db4b039 /web/react/stores/post_store.jsx
parent58b57acfacbae4aa4af0688ad89ba2f6c7d100ef (diff)
downloadchat-27c2862c56296b982031c71f8a89163b77630392.tar.gz
chat-27c2862c56296b982031c71f8a89163b77630392.tar.bz2
chat-27c2862c56296b982031c71f8a89163b77630392.zip
Allow to update root comment in RHS via arrow up shortcut
Diffstat (limited to 'web/react/stores/post_store.jsx')
-rw-r--r--web/react/stores/post_store.jsx2
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;
}