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() {
|
isCustomReply() {
|
||||||
if (!this.previousItem) return false
|
if (!this.previousItem) return false
|
||||||
|
if (!this.chatItem.data.in_reply_to_status_id) return false
|
||||||
console.log('==')
|
console.log('==')
|
||||||
console.log('PREV', toValue(this.previousItem.data.raw_html))
|
console.log('PREV', toValue(this.previousItem.data.text))
|
||||||
console.log('CURR', toValue(this.chatItem.data.raw_html))
|
console.log('CURR', toValue(this.chatItem.data.text))
|
||||||
return (
|
return (
|
||||||
this.previousItem.data.id !== this.chatItem.data.in_reply_to_status_id
|
this.previousItem.data.id !== this.chatItem.data.in_reply_to_status_id
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
customReplyTo() {
|
customReplyTo() {
|
||||||
return find(this.$store.state.statuses.allStatuses, {
|
return this.$store.state.statuses.allStatusesObject[
|
||||||
id: this.chatItem.data.in_reply_to_status_id,
|
this.chatItem.data.in_reply_to_status_id
|
||||||
})
|
]
|
||||||
},
|
},
|
||||||
messageForStatusContent() {
|
messageForStatusContent() {
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,9 @@
|
||||||
/>
|
/>
|
||||||
{{ $t('status.reply_to') }}
|
{{ $t('status.reply_to') }}
|
||||||
</strong>
|
</strong>
|
||||||
|
<!-- v-if is there because status might not be loaded yet -->
|
||||||
<StatusBody
|
<StatusBody
|
||||||
|
v-if="customReplyTo"
|
||||||
class="reply-body"
|
class="reply-body"
|
||||||
:status="customReplyTo"
|
:status="customReplyTo"
|
||||||
collapse
|
collapse
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
.text {
|
.text {
|
||||||
&.-single-line {
|
&.-single-line {
|
||||||
white-space: nowrap;
|
white-space-collapse: collapse;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
height: 1.4em;
|
height: 1.4em;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue