summaryrefslogtreecommitdiff
path: root/src/client/ui/chat/note.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/ui/chat/note.vue')
-rw-r--r--src/client/ui/chat/note.vue10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/client/ui/chat/note.vue b/src/client/ui/chat/note.vue
index 29bc61d9c5..5a4a13d889 100644
--- a/src/client/ui/chat/note.vue
+++ b/src/client/ui/chat/note.vue
@@ -325,15 +325,7 @@ export default defineComponent({
capture(withHandler = false) {
if (this.$i) {
- this.connection.send('sn', { id: this.appearNote.id });
- if (this.appearNote.userId !== this.$i.id) {
- if (this.appearNote.mentions && this.appearNote.mentions.includes(this.$i.id)) {
- this.connection.send('readMention', { id: this.appearNote.id });
- }
- if (this.appearNote.visibleUserIds && this.appearNote.visibleUserIds.includes(this.$i.id)) {
- this.connection.send('readSpecifiedNote', { id: this.appearNote.id });
- }
- }
+ this.connection.send(document.body.contains(this.$el) ? 'sn' : 's', { id: this.appearNote.id });
if (withHandler) this.connection.on('noteUpdated', this.onStreamNoteUpdated);
}
},