Fixing the complete removal
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user