mirror of
https://github.com/Troplo/Colubrina.git
synced 2024-11-22 19:27:55 +11:00
1.0.24
This commit is contained in:
parent
11b8edf717
commit
642b4ccf34
3 changed files with 6 additions and 4 deletions
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "colubrina",
|
||||
"version": "1.0.23",
|
||||
"version": "1.0.24",
|
||||
"description": "Simple instant communication.",
|
||||
"private": true,
|
||||
"author": "Troplo <troplo@troplo.com>",
|
||||
"scripts": {
|
||||
"serve": "vue-cli-service serve",
|
||||
"build": "vue-cli-service build",
|
||||
"build": "vue-cli-service build --no-clean",
|
||||
"lint": "vue-cli-service lint",
|
||||
"electron:build": "vue-cli-service electron:build",
|
||||
"electron:serve": "vue-cli-service electron:serve",
|
||||
|
|
|
@ -974,12 +974,13 @@ export default {
|
|||
return this.message.poll.options.map((option) => {
|
||||
return {
|
||||
id: option.id,
|
||||
percentage:
|
||||
percentage: Math.round(
|
||||
((this.message.poll.answers?.filter(
|
||||
(answer) => answer?.answer === option.id
|
||||
).length || 0) /
|
||||
this.message.poll.answers.length) *
|
||||
100 || 0
|
||||
)
|
||||
}
|
||||
})
|
||||
},
|
||||
|
|
|
@ -1064,6 +1064,7 @@ export default {
|
|||
})
|
||||
},
|
||||
async getMessages() {
|
||||
this.loadingMessages = true
|
||||
this.autoScroll()
|
||||
await this.axios
|
||||
.get(
|
||||
|
@ -1232,13 +1233,13 @@ export default {
|
|||
drafts[oldVal] = ""
|
||||
}
|
||||
this.message = drafts[val] || ""
|
||||
this.messages = []
|
||||
this.usersTyping = []
|
||||
this.replying = null
|
||||
this.reachedTop = false
|
||||
this.avoidAutoScroll = false
|
||||
this.offset = 0
|
||||
this.pins = []
|
||||
this.messages = []
|
||||
this.getMessages()
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue