mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
fix(webapp): better chat upload ui (#8693)
* Fix date formatting of transmitting message * Avoid duplicate key; fix formatting
This commit is contained in:
parent
a912a353e4
commit
4a42d22692
@ -73,8 +73,11 @@
|
||||
v-for="message in messages.filter((m) => m.isUploading)"
|
||||
:slot="'message_' + message._id"
|
||||
v-bind:key="message._id"
|
||||
class="vac-format-message-wrapper"
|
||||
>
|
||||
{{ $t('chat.transmitting') }}
|
||||
<div class="markdown">
|
||||
<p>{{ $t('chat.transmitting') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div v-for="room in rooms" :slot="'room-list-avatar_' + room.id" :key="room.id">
|
||||
@ -406,10 +409,10 @@ export default {
|
||||
// Immediately add new message
|
||||
const localMessage = {
|
||||
...messageDetails,
|
||||
_id: 'new',
|
||||
_id: 'new' + Math.random().toString(36).substring(2, 15),
|
||||
seen: false,
|
||||
saved: false,
|
||||
date: new Date(),
|
||||
date: new Date().toDateString(),
|
||||
senderId: this.currentUser.id,
|
||||
files:
|
||||
messageDetails.files?.map((file) => ({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user