mirror of
https://github.com/Troplo/Colubrina.git
synced 2024-11-22 19:27:55 +11:00
1.0.32
This commit is contained in:
parent
e2afefedb2
commit
5edbd5ad4d
4 changed files with 18 additions and 20 deletions
|
@ -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>",
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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.$store.state.chats.find(
|
||||||
this.items.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 {
|
console.log("Chat could not be found (markAsRead)")
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
endSend() {
|
endSend() {
|
||||||
|
|
Loading…
Reference in a new issue