Chat fixes
This commit is contained in:
parent
804cf3abc5
commit
f06ec18cd7
3 changed files with 3 additions and 2 deletions
|
@ -17,7 +17,7 @@
|
|||
<i class="button-icon icon-mail-alt" /> {{ $t("nav.dms") }}
|
||||
</router-link>
|
||||
</li>
|
||||
<li style="position: relative">
|
||||
<li v-if="currentUser">
|
||||
<router-link :to="{ name: 'chats', params: { username: currentUser.screen_name } }">
|
||||
<i class="button-icon icon-chat" /> {{ $t("nav.chats") }}
|
||||
</router-link>
|
||||
|
|
|
@ -218,7 +218,7 @@ const PostStatusForm = {
|
|||
poll: {}
|
||||
}
|
||||
this.pollFormVisible = false
|
||||
this.$refs.mediaUpload.clearFile()
|
||||
this.$refs.mediaUpload && this.$refs.mediaUpload.clearFile()
|
||||
this.clearPollForm()
|
||||
this.$emit('posted', data)
|
||||
if (this.preserveFocus) {
|
||||
|
|
|
@ -382,6 +382,7 @@ export const parseChat = (chat) => {
|
|||
|
||||
export const parseChatMessage = (message) => {
|
||||
let output = message
|
||||
output.id = parseInt(message.id, 10)
|
||||
output.created_at = new Date(message.created_at)
|
||||
output.chat_id = parseInt(message.chat_id, 10)
|
||||
return output
|
||||
|
|
Loading…
Reference in a new issue