lint
This commit is contained in:
parent
036a12859f
commit
2871326c35
9 changed files with 79 additions and 46 deletions
|
|
@ -7,9 +7,9 @@ import ChatMessageDate from 'src/components/chat_message_date/chat_message_date.
|
|||
import Gallery from 'src/components/gallery/gallery.vue'
|
||||
import LinkPreview from 'src/components/link-preview/link-preview.vue'
|
||||
import Popover from 'src/components/popover/popover.vue'
|
||||
import StatusContent from 'src/components/status_content/status_content.vue'
|
||||
import StatusBody from 'src/components/status_body/status_body.vue'
|
||||
import StatusActionButtons from 'src/components/status_action_buttons/status_action_buttons.vue'
|
||||
import StatusBody from 'src/components/status_body/status_body.vue'
|
||||
import StatusContent from 'src/components/status_content/status_content.vue'
|
||||
import UserAvatar from 'src/components/user_avatar/user_avatar.vue'
|
||||
import UserPopover from 'src/components/user_popover/user_popover.vue'
|
||||
|
||||
|
|
@ -28,7 +28,14 @@ library.add(faTimes, faEllipsisH, faCircleNotch)
|
|||
|
||||
const ChatMessage = {
|
||||
name: 'ChatMessage',
|
||||
props: ['edited', 'noHeading', 'previousItem', 'chatItem', 'previousItem', 'hoveredMessageChain'],
|
||||
props: [
|
||||
'edited',
|
||||
'noHeading',
|
||||
'previousItem',
|
||||
'chatItem',
|
||||
'previousItem',
|
||||
'hoveredMessageChain',
|
||||
],
|
||||
emits: ['hover', 'replyRequested'],
|
||||
components: {
|
||||
Popover,
|
||||
|
|
@ -40,7 +47,8 @@ const ChatMessage = {
|
|||
Gallery,
|
||||
LinkPreview,
|
||||
ChatMessageDate,
|
||||
UserPopover,},
|
||||
UserPopover,
|
||||
},
|
||||
computed: {
|
||||
// Returns HH:MM (hours and minutes) in local time.
|
||||
createdAt() {
|
||||
|
|
@ -74,10 +82,14 @@ const ChatMessage = {
|
|||
console.log('==')
|
||||
console.log('PREV', toValue(this.previousItem.data.raw_html))
|
||||
console.log('CURR', toValue(this.chatItem.data.raw_html))
|
||||
return this.previousItem.data.id !== this.chatItem.data.in_reply_to_status_id
|
||||
return (
|
||||
this.previousItem.data.id !== this.chatItem.data.in_reply_to_status_id
|
||||
)
|
||||
},
|
||||
customReplyTo() {
|
||||
return find(this.$store.state.statuses.allStatuses, { id: this.chatItem.data.in_reply_to_status_id })
|
||||
return find(this.$store.state.statuses.allStatuses, {
|
||||
id: this.chatItem.data.in_reply_to_status_id,
|
||||
})
|
||||
},
|
||||
messageForStatusContent() {
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue