mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 16:33:08 +02:00
This commit is contained in:
parent
d0227b95f6
commit
5daa9262f6
2 changed files with 8 additions and 4 deletions
|
@ -171,7 +171,7 @@ export default Vue.extend({
|
||||||
if ((this as any).os.isSignedIn) {
|
if ((this as any).os.isSignedIn) {
|
||||||
this.connection.send({
|
this.connection.send({
|
||||||
type: 'capture',
|
type: 'capture',
|
||||||
id: this.post.id
|
id: this.p.id
|
||||||
});
|
});
|
||||||
if (withHandler) this.connection.on('post-updated', this.onStreamPostUpdated);
|
if (withHandler) this.connection.on('post-updated', this.onStreamPostUpdated);
|
||||||
}
|
}
|
||||||
|
@ -180,7 +180,7 @@ export default Vue.extend({
|
||||||
if ((this as any).os.isSignedIn) {
|
if ((this as any).os.isSignedIn) {
|
||||||
this.connection.send({
|
this.connection.send({
|
||||||
type: 'decapture',
|
type: 'decapture',
|
||||||
id: this.post.id
|
id: this.p.id
|
||||||
});
|
});
|
||||||
if (withHandler) this.connection.off('post-updated', this.onStreamPostUpdated);
|
if (withHandler) this.connection.off('post-updated', this.onStreamPostUpdated);
|
||||||
}
|
}
|
||||||
|
@ -192,6 +192,8 @@ export default Vue.extend({
|
||||||
const post = data.post;
|
const post = data.post;
|
||||||
if (post.id == this.post.id) {
|
if (post.id == this.post.id) {
|
||||||
this.$emit('update:post', post);
|
this.$emit('update:post', post);
|
||||||
|
} else if (post.id == this.post.repost_id) {
|
||||||
|
this.post.repost = post;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
reply() {
|
reply() {
|
||||||
|
|
|
@ -146,7 +146,7 @@ export default Vue.extend({
|
||||||
if ((this as any).os.isSignedIn) {
|
if ((this as any).os.isSignedIn) {
|
||||||
this.connection.send({
|
this.connection.send({
|
||||||
type: 'capture',
|
type: 'capture',
|
||||||
id: this.post.id
|
id: this.p.id
|
||||||
});
|
});
|
||||||
if (withHandler) this.connection.on('post-updated', this.onStreamPostUpdated);
|
if (withHandler) this.connection.on('post-updated', this.onStreamPostUpdated);
|
||||||
}
|
}
|
||||||
|
@ -155,7 +155,7 @@ export default Vue.extend({
|
||||||
if ((this as any).os.isSignedIn) {
|
if ((this as any).os.isSignedIn) {
|
||||||
this.connection.send({
|
this.connection.send({
|
||||||
type: 'decapture',
|
type: 'decapture',
|
||||||
id: this.post.id
|
id: this.p.id
|
||||||
});
|
});
|
||||||
if (withHandler) this.connection.off('post-updated', this.onStreamPostUpdated);
|
if (withHandler) this.connection.off('post-updated', this.onStreamPostUpdated);
|
||||||
}
|
}
|
||||||
|
@ -167,6 +167,8 @@ export default Vue.extend({
|
||||||
const post = data.post;
|
const post = data.post;
|
||||||
if (post.id == this.post.id) {
|
if (post.id == this.post.id) {
|
||||||
this.$emit('update:post', post);
|
this.$emit('update:post', post);
|
||||||
|
} else if (post.id == this.post.repost_id) {
|
||||||
|
this.post.repost = post;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
reply() {
|
reply() {
|
||||||
|
|
Loading…
Reference in a new issue