This commit is contained in:
Troplo 2022-10-04 20:52:12 +11:00
parent e2afefedb2
commit 5edbd5ad4d
4 changed files with 18 additions and 20 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "colubrina", "name": "colubrina",
"version": "1.0.31", "version": "1.0.32",
"description": "Simple instant communication.", "description": "Simple instant communication.",
"private": true, "private": true,
"author": "Troplo <troplo@troplo.com>", "author": "Troplo <troplo@troplo.com>",

View file

@ -1,7 +1,8 @@
<template> <template>
<div> <span>
<v-card <v-card
:min-width="!$vuetify.breakpoint.mobile ? 400 : 0" :min-width="!$vuetify.breakpoint.mobile ? 400 : 0"
:max-width="500"
elevation="0" elevation="0"
color="card" color="card"
v-if="embed.type === 'image'" v-if="embed.type === 'image'"
@ -164,7 +165,7 @@
</v-row> </v-row>
</v-container> </v-container>
</v-card> </v-card>
</div> </span>
</template> </template>
<script> <script>

View file

@ -153,14 +153,13 @@
</span> </span>
<template v-if="edit.id !== message.id"> <template v-if="edit.id !== message.id">
<v-row <Embed
v-for="(embed, index) in message.embeds" v-for="(embed, index) in message.embeds"
:key="index" :key="index"
:id="'embed-' + index" :id="'embed-' + index"
no-gutters :embed="embed"
> :setImagePreview="setImagePreview"
<Embed :embed="embed" :setImagePreview="setImagePreview"></Embed> ></Embed>
</v-row>
<v-row v-if="message.poll" no-gutters> <v-row v-if="message.poll" no-gutters>
<Poll :message="message"></Poll> <Poll :message="message"></Poll>
</v-row> </v-row>

View file

@ -833,18 +833,16 @@ export default {
this.replying = message this.replying = message
}, },
markAsRead() { markAsRead() {
if (this.items) {
try { try {
const unread = this.$store.state.chats.find( const unread = this.$store.state.chats.find(
(item) => item.id === JSON.parse(this.$route.params.id) (item) => item.id === JSON.parse(this.$route.params.id)
).unread ).unread
this.items.find( this.$store.state.chats.find(
(item) => item.id === JSON.parse(this.$route.params.id) (item) => item.id === JSON.parse(this.$route.params.id)
).unread = 0 ).unread = 0
this.$store.state.communicationNotifications -= unread this.$store.state.communicationNotifications -= unread
} catch { } catch {
return console.log("Chat could not be found (markAsRead)")
}
} }
}, },
endSend() { endSend() {