From 262760d2586cac48da27cf7eb5389116d4023dfe Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 10 Apr 2019 21:48:42 +0300 Subject: revert unnecessary changes --- src/components/conversation/conversation.js | 10 +++++----- src/components/conversation/conversation.vue | 25 ++++++++----------------- 2 files changed, 13 insertions(+), 22 deletions(-) (limited to 'src/components/conversation') diff --git a/src/components/conversation/conversation.js b/src/components/conversation/conversation.js index 9ceab32d..69058bf6 100644 --- a/src/components/conversation/conversation.js +++ b/src/components/conversation/conversation.js @@ -94,8 +94,8 @@ const conversation = { }, replies () { let i = 1 - /* eslint-disable camelcase */ - return reduce(this.conversation, (result, { id, in_reply_to_status_id }) => { + return reduce(this.conversation, (result, {id, in_reply_to_status_id}) => { + /* eslint-disable camelcase */ const irid = in_reply_to_status_id /* eslint-enable camelcase */ if (irid) { @@ -127,8 +127,8 @@ const conversation = { methods: { fetchConversation () { if (this.status) { - this.$store.state.api.backendInteractor.fetchConversation({ id: this.status.id }) - .then(({ ancestors, descendants }) => { + this.$store.state.api.backendInteractor.fetchConversation({id: this.status.id}) + .then(({ancestors, descendants}) => { this.$store.dispatch('addNewStatuses', { statuses: ancestors }) this.$store.dispatch('addNewStatuses', { statuses: descendants }) set(this, 'converationStatusIds', [].concat( @@ -139,7 +139,7 @@ const conversation = { .then(() => this.setHighlight(this.statusId)) } else { const id = this.$route.params.id - this.$store.state.api.backendInteractor.fetchStatus({ id }) + this.$store.state.api.backendInteractor.fetchStatus({id}) .then((status) => this.$store.dispatch('addNewStatuses', { statuses: [status] })) .then(() => this.fetchConversation()) } diff --git a/src/components/conversation/conversation.vue b/src/components/conversation/conversation.vue index 1973edae..c39a3ed9 100644 --- a/src/components/conversation/conversation.vue +++ b/src/components/conversation/conversation.vue @@ -1,33 +1,24 @@ -- cgit v1.2.3-70-g09d2