This commit is contained in:
syuilo 2018-09-19 14:18:34 +09:00
parent 195f676500
commit d9f0e158a3
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
25 changed files with 239 additions and 39 deletions

View file

@ -213,10 +213,14 @@ export default Vue.extend({
methods: {
capture(withHandler = false) {
if (this.$store.getters.isSignedIn) {
this.connection.send({
const data = {
type: 'capture',
id: this.p.id
});
} as any;
if ((this.p.visibleUserIds || []).includes(this.$store.state.i.id) || (this.p.mentions || []).includes(this.$store.state.i.id)) {
data.read = true;
}
this.connection.send(data);
if (withHandler) this.connection.on('note-updated', this.onStreamNoteUpdated);
}
},