[Client] Fix bug

This commit is contained in:
syuilo 2017-03-20 14:53:52 +09:00
parent b6475958d0
commit 5d023178be
2 changed files with 6 additions and 6 deletions

View File

@ -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);
};

View File

@ -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);
};