Fix controlled status display toggles

This commit is contained in:
Tusooa Zhu 2021-09-09 00:03:10 -04:00
parent ba858a894c
commit 0db5a5a581
No known key found for this signature in database
GPG key ID: 7B467EDE43A08224
3 changed files with 17 additions and 13 deletions

View file

@ -116,12 +116,8 @@ const StatusContent = {
toggleExpandingSubject () {
controlledOrUncontrolledToggle(this, 'expandingSubject')
},
toggleShowMore () {
if (this.mightHideBecauseTall) {
this.toggleShowingTall()
} else if (this.mightHideBecauseSubject) {
this.toggleExpandingSubject()
}
toggleShowingLongSubject () {
controlledOrUncontrolledToggle(this, 'showingLongSubject')
},
setMedia () {
const attachments = this.attachmentSize === 'hide' ? this.status.attachments : this.galleryAttachments