diff options
| author | Shpuld Shpludson <shp@cock.li> | 2019-02-12 16:06:23 +0000 |
|---|---|---|
| committer | Shpuld Shpludson <shp@cock.li> | 2019-02-12 16:06:23 +0000 |
| commit | 26954cb3dd07e7f6a35fb843bee8e84334385424 (patch) | |
| tree | 32a4d0a1102bef42dc1a661c61faa50105cb99d0 /src | |
| parent | 6f4fbcffc057f186791f4f9097dd5eaec5b3470d (diff) | |
| parent | 25bb80a9820681f44fb6684d7cddd5b3457e4d80 (diff) | |
Merge branch 'issue-341-repeat-auto-scroll' into 'develop'
#341 - automatic scroll with repeats/reports
See merge request pleroma/pleroma-fe!568
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/conversation/conversation.js | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/components/conversation/conversation.js b/src/components/conversation/conversation.js index c18781de..2f7852b8 100644 --- a/src/components/conversation/conversation.js +++ b/src/components/conversation/conversation.js @@ -36,6 +36,13 @@ const conversation = { status () { return this.statusoid }, + statusId () { + if (this.statusoid.retweeted_status) { + return this.statusoid.retweeted_status.id + } else { + return this.statusoid.id + } + }, conversation () { if (!this.status) { return [] @@ -79,7 +86,7 @@ const conversation = { const conversationId = this.status.statusnet_conversation_id this.$store.state.api.backendInteractor.fetchConversation({id: conversationId}) .then((statuses) => this.$store.dispatch('addNewStatuses', { statuses })) - .then(() => this.setHighlight(this.statusoid.id)) + .then(() => this.setHighlight(this.statusId)) } else { const id = this.$route.params.id this.$store.state.api.backendInteractor.fetchStatus({id}) @@ -91,11 +98,7 @@ const conversation = { return this.replies[id] || [] }, focused (id) { - if (this.statusoid.retweeted_status) { - return (id === this.statusoid.retweeted_status.id) - } else { - return (id === this.statusoid.id) - } + return id === this.statusId }, setHighlight (id) { this.highlight = id |
