From 5d023178be6521b5a3a7b85280a101f94c51f4fe Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 20 Mar 2017 14:53:52 +0900 Subject: [PATCH] [Client] Fix bug --- src/web/app/desktop/tags/timeline-post.tag | 6 +++--- src/web/app/mobile/tags/timeline-post.tag | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/web/app/desktop/tags/timeline-post.tag b/src/web/app/desktop/tags/timeline-post.tag index 0bec6e8cb..3961d5a5c 100644 --- a/src/web/app/desktop/tags/timeline-post.tag +++ b/src/web/app/desktop/tags/timeline-post.tag @@ -359,7 +359,7 @@ this.onStreamPostUpdated = data => { const post = data.post; - if (post.id == this.p.id) { + if (post.id == this.post.id) { this.refresh(post); } }; @@ -367,7 +367,7 @@ this.capture = () => { this.stream.send({ type: 'capture', - id: this.p.id + id: this.post.id }); this.stream.on('post-updated', this.onStreamPostUpdated); }; @@ -375,7 +375,7 @@ this.decapture = () => { this.stream.send({ type: 'decapture', - id: this.p.id + id: this.post.id }); this.stream.off('post-updated', this.onStreamPostUpdated); }; diff --git a/src/web/app/mobile/tags/timeline-post.tag b/src/web/app/mobile/tags/timeline-post.tag index a492950fc..82a43239c 100644 --- a/src/web/app/mobile/tags/timeline-post.tag +++ b/src/web/app/mobile/tags/timeline-post.tag @@ -335,7 +335,7 @@ this.onStreamPostUpdated = data => { const post = data.post; - if (post.id == this.p.id) { + if (post.id == this.post.id) { this.refresh(post); } }; @@ -343,7 +343,7 @@ this.capture = () => { this.stream.send({ type: 'capture', - id: this.p.id + id: this.post.id }); this.stream.on('post-updated', this.onStreamPostUpdated); }; @@ -351,7 +351,7 @@ this.decapture = () => { this.stream.send({ type: 'decapture', - id: this.p.id + id: this.post.id }); this.stream.off('post-updated', this.onStreamPostUpdated); };