fixes
This commit is contained in:
parent
65291bc303
commit
d8aa7ec97e
3 changed files with 9 additions and 6 deletions
|
|
@ -79,17 +79,18 @@ const ChatMessage = {
|
|||
},
|
||||
isCustomReply() {
|
||||
if (!this.previousItem) return false
|
||||
if (!this.chatItem.data.in_reply_to_status_id) return false
|
||||
console.log('==')
|
||||
console.log('PREV', toValue(this.previousItem.data.raw_html))
|
||||
console.log('CURR', toValue(this.chatItem.data.raw_html))
|
||||
console.log('PREV', toValue(this.previousItem.data.text))
|
||||
console.log('CURR', toValue(this.chatItem.data.text))
|
||||
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 this.$store.state.statuses.allStatusesObject[
|
||||
this.chatItem.data.in_reply_to_status_id
|
||||
]
|
||||
},
|
||||
messageForStatusContent() {
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -37,7 +37,9 @@
|
|||
/>
|
||||
{{ $t('status.reply_to') }}
|
||||
</strong>
|
||||
<!-- v-if is there because status might not be loaded yet -->
|
||||
<StatusBody
|
||||
v-if="customReplyTo"
|
||||
class="reply-body"
|
||||
:status="customReplyTo"
|
||||
collapse
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
.text {
|
||||
&.-single-line {
|
||||
white-space: nowrap;
|
||||
white-space-collapse: collapse;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
height: 1.4em;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue