From 39026f8bc39bb15dd485b5b6d2a7b28d5deb8cb7 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Mon, 23 Apr 2018 19:07:47 +0200 Subject: [PATCH 1/4] Fix repeat nsfw hiding. --- src/modules/statuses.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/statuses.js b/src/modules/statuses.js index bd52f161..cbad5e70 100644 --- a/src/modules/statuses.js +++ b/src/modules/statuses.js @@ -45,7 +45,7 @@ export const prepareStatus = (status) => { if (status.nsfw === undefined) { status.nsfw = isNsfw(status) if (status.retweeted_status) { - status.retweeted_status.nsfw = status.nsfw + status.nsfw = status.retweeted_status.nsfw } } From 935b7745eac6b0dd4e5aa406d5f7d25cdfcca3f0 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Mon, 23 Apr 2018 19:22:28 +0200 Subject: [PATCH 2/4] Fix nsfw in notifications again. --- src/modules/statuses.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/statuses.js b/src/modules/statuses.js index cbad5e70..b493c212 100644 --- a/src/modules/statuses.js +++ b/src/modules/statuses.js @@ -136,7 +136,7 @@ const addNewStatuses = (state, { statuses, showImmediately = false, timeline, us if (result.new) { if (statusType(status) === 'retweet' && status.retweeted_status.user.id === user.id) { - addNotification({ type: 'repeat', status: status.retweeted_status, action: status }) + addNotification({ type: 'repeat', status: status, action: status }) } // We are mentioned in a post From bb92798b748f912c0f01aec4a1cb42efcd37f54b Mon Sep 17 00:00:00 2001 From: Hakaba Hitoyo Date: Tue, 24 Apr 2018 07:48:30 +0000 Subject: [PATCH 3/4] Collapse chat by default --- src/components/chat_panel/chat_panel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/chat_panel/chat_panel.js b/src/components/chat_panel/chat_panel.js index d528d0a1..d8736d17 100644 --- a/src/components/chat_panel/chat_panel.js +++ b/src/components/chat_panel/chat_panel.js @@ -3,7 +3,7 @@ const chatPanel = { return { currentMessage: '', channel: null, - collapsed: false + collapsed: true } }, computed: { From 38653e1ea0db19cca328e530f38f6112239d94d5 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Thu, 26 Apr 2018 20:30:35 +0200 Subject: [PATCH 4/4] Fix specs. --- test/unit/specs/modules/statuses.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/specs/modules/statuses.spec.js b/test/unit/specs/modules/statuses.spec.js index 372d1aaa..f929192b 100644 --- a/test/unit/specs/modules/statuses.spec.js +++ b/test/unit/specs/modules/statuses.spec.js @@ -297,7 +297,7 @@ describe('The Statuses module', () => { mutations.addNewStatuses(state, { statuses: [retweet], user }) expect(state.notifications.length).to.eql(1) - expect(state.notifications[0].status).to.eql(status) + expect(state.notifications[0].status).to.eql(retweet) expect(state.notifications[0].action).to.eql(retweet) expect(state.notifications[0].type).to.eql('repeat') })