now it actually works

This commit is contained in:
Henry Jameson 2018-09-25 15:16:26 +03:00
parent 6165b7366a
commit ef968d8e1e
5 changed files with 21 additions and 9 deletions

View file

@ -174,10 +174,16 @@ const Status = {
return true
},
replySubject () {
if (this.status.summary && !this.status.summary.match(/^re[: ]/i)) {
if (!this.status.summary) return '';
const behavior = this.$store.state.config.subjectLineBehavior
const startsWithRe = this.status.summary.match(/^re[: ]/i)
if (behavior !== 'noop' && startsWithRe || behavior === 'masto') {
return this.status.summary
} else if (behavior === 'email') {
return 're: '.concat(this.status.summary)
} else if (behavior === 'noop') {
return ''
}
return this.status.summary
},
attachmentSize () {
if ((this.$store.state.config.hideAttachments && !this.inConversation) ||