Fixing the complete removal

This commit is contained in:
2026-09-29 21:36:31 +03:30
parent 83504816c5
commit 88dc7c5a1c
2 changed files with 105 additions and 68 deletions
+3 -7
View File
@@ -837,18 +837,14 @@ onUnmounted(() => {
<div
class="bubble"
:class="{
media: msg.type !== 'text' && !msg.deleted,
deleted: msg.deleted,
media: msg.type !== 'text',
}"
@touchstart.passive="onBubbleTouchStart(msg, $event)"
@touchend="onBubbleTouchEnd"
@touchmove="onBubbleTouchEnd"
@touchcancel="onBubbleTouchEnd"
>
<template v-if="msg.deleted">
<p class="deleted-text">این پیام حذف شد</p>
</template>
<template v-else-if="msg.type === 'image'">
<template v-if="msg.type === 'image'">
<button
type="button"
class="media-image"
@@ -907,7 +903,7 @@ onUnmounted(() => {
</template>
<p v-else>{{ msg.content }}</p>
<div class="bubble-meta">
<span v-if="msg.edited && !msg.deleted" class="edited-mark">ویرایش‌شده</span>
<span v-if="msg.edited" class="edited-mark">ویرایش‌شده</span>
<time>{{ formatListTime(msg.createdAt) }}</time>
<span
v-if="msg.senderId === chatUserId || msg.optimistic"