feat: show 📎 in chats if only attachment

This commit is contained in:
ThatOneCalculator 2022-09-13 19:25:36 -07:00
parent fa4b8aca63
commit b293d92b56

View file

@ -27,7 +27,11 @@
<MkTime :time="message.createdAt" class="time"/>
</header>
<div class="body">
<p class="text"><span v-if="isMe(message)" class="me">{{ $ts.you }}:</span>{{ message.text }}</p>
<p class="text">
<span v-if="isMe(message)" class="me">{{ $ts.you }}:</span>
<span v-if="message.text != null && message.text.length > 0">{{ message.text }}</span>
<span v-else> 📎</span>
</p>
</div>
</div>
</MkA>