mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 17:03:49 +01:00
[Client] Fix bug
This commit is contained in:
parent
70a36597d3
commit
b8872f9de8
@ -359,7 +359,7 @@
|
|||||||
|
|
||||||
this.onStreamPostUpdated = data => {
|
this.onStreamPostUpdated = data => {
|
||||||
const post = data.post;
|
const post = data.post;
|
||||||
if (post.id == this.p.id) {
|
if (post.id == this.post.id) {
|
||||||
this.refresh(post);
|
this.refresh(post);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -367,7 +367,7 @@
|
|||||||
this.capture = () => {
|
this.capture = () => {
|
||||||
this.stream.send({
|
this.stream.send({
|
||||||
type: 'capture',
|
type: 'capture',
|
||||||
id: this.p.id
|
id: this.post.id
|
||||||
});
|
});
|
||||||
this.stream.on('post-updated', this.onStreamPostUpdated);
|
this.stream.on('post-updated', this.onStreamPostUpdated);
|
||||||
};
|
};
|
||||||
@ -375,7 +375,7 @@
|
|||||||
this.decapture = () => {
|
this.decapture = () => {
|
||||||
this.stream.send({
|
this.stream.send({
|
||||||
type: 'decapture',
|
type: 'decapture',
|
||||||
id: this.p.id
|
id: this.post.id
|
||||||
});
|
});
|
||||||
this.stream.off('post-updated', this.onStreamPostUpdated);
|
this.stream.off('post-updated', this.onStreamPostUpdated);
|
||||||
};
|
};
|
||||||
|
@ -335,7 +335,7 @@
|
|||||||
|
|
||||||
this.onStreamPostUpdated = data => {
|
this.onStreamPostUpdated = data => {
|
||||||
const post = data.post;
|
const post = data.post;
|
||||||
if (post.id == this.p.id) {
|
if (post.id == this.post.id) {
|
||||||
this.refresh(post);
|
this.refresh(post);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -343,7 +343,7 @@
|
|||||||
this.capture = () => {
|
this.capture = () => {
|
||||||
this.stream.send({
|
this.stream.send({
|
||||||
type: 'capture',
|
type: 'capture',
|
||||||
id: this.p.id
|
id: this.post.id
|
||||||
});
|
});
|
||||||
this.stream.on('post-updated', this.onStreamPostUpdated);
|
this.stream.on('post-updated', this.onStreamPostUpdated);
|
||||||
};
|
};
|
||||||
@ -351,7 +351,7 @@
|
|||||||
this.decapture = () => {
|
this.decapture = () => {
|
||||||
this.stream.send({
|
this.stream.send({
|
||||||
type: 'decapture',
|
type: 'decapture',
|
||||||
id: this.p.id
|
id: this.post.id
|
||||||
});
|
});
|
||||||
this.stream.off('post-updated', this.onStreamPostUpdated);
|
this.stream.off('post-updated', this.onStreamPostUpdated);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user