From 298e0af99e41fd34b92f6a3d6823a21212f79115 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 22 Jul 2026 21:38:49 +0300 Subject: [PATCH] handling broken replies --- src/components/chat_message/chat_message.js | 4 ++++ src/components/chat_message/chat_message.vue | 7 ++++++- src/i18n/en.json | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/components/chat_message/chat_message.js b/src/components/chat_message/chat_message.js index a71014078..ec1b53517 100644 --- a/src/components/chat_message/chat_message.js +++ b/src/components/chat_message/chat_message.js @@ -90,6 +90,10 @@ const ChatMessage = { this.previousItem.data.id !== this.chatItem.data.in_reply_to_status_id ) }, + isBrokenReply() { + if (!this.previousItem) return false + return !this.chatItem.data.in_reply_to_status_id + }, customReplyTo() { return this.$store.state.statuses.allStatusesObject[ this.chatItem.data.in_reply_to_status_id diff --git a/src/components/chat_message/chat_message.vue b/src/components/chat_message/chat_message.vue index 234d20cb2..b4f8bc30e 100644 --- a/src/components/chat_message/chat_message.vue +++ b/src/components/chat_message/chat_message.vue @@ -7,7 +7,7 @@ @mouseleave="onHover(false)" >
+ + {{ $t('status.broken_reply') }} +