diff --git a/spec/renderer/integration/store/TimelineSpace/Contents/DirectMessages.spec.ts b/spec/renderer/integration/store/TimelineSpace/Contents/DirectMessages.spec.ts index 02c8558f..b62dce19 100644 --- a/spec/renderer/integration/store/TimelineSpace/Contents/DirectMessages.spec.ts +++ b/spec/renderer/integration/store/TimelineSpace/Contents/DirectMessages.spec.ts @@ -133,8 +133,7 @@ let state = (): DirectMessagesState => { return { lazyLoading: false, heading: true, - timeline: [], - unreadTimeline: [] + timeline: [] } } @@ -197,7 +196,6 @@ describe('Home', () => { lazyLoading: false, heading: true, timeline: [status1], - unreadTimeline: [], showReblogs: true, showReplies: true } diff --git a/spec/renderer/unit/store/TimelineSpace/Contents/DirectMessages.spec.ts b/spec/renderer/unit/store/TimelineSpace/Contents/DirectMessages.spec.ts index f8f483db..1cfb08d1 100644 --- a/spec/renderer/unit/store/TimelineSpace/Contents/DirectMessages.spec.ts +++ b/spec/renderer/unit/store/TimelineSpace/Contents/DirectMessages.spec.ts @@ -136,8 +136,7 @@ describe('TimelineSpace/Contents/DirectMessages', () => { state = { lazyLoading: false, heading: true, - timeline: [status2, status1], - unreadTimeline: [] + timeline: [status2, status1] } }) it('should be deleted', () => { @@ -151,8 +150,7 @@ describe('TimelineSpace/Contents/DirectMessages', () => { state = { lazyLoading: false, heading: true, - timeline: [status2, rebloggedStatus], - unreadTimeline: [] + timeline: [status2, rebloggedStatus] } }) it('should be deleted', () => { @@ -169,14 +167,12 @@ describe('TimelineSpace/Contents/DirectMessages', () => { state = { lazyLoading: false, heading: true, - timeline: [status2, status1], - unreadTimeline: [] + timeline: [status2, status1] } }) it('should be updated timeline', () => { DirectMessages.mutations![MUTATION_TYPES.APPEND_TIMELINE](state, rebloggedStatus) expect(state.timeline).toEqual([rebloggedStatus, status2, status1]) - expect(state.unreadTimeline).toEqual([]) }) }) @@ -185,14 +181,12 @@ describe('TimelineSpace/Contents/DirectMessages', () => { state = { lazyLoading: false, heading: true, - timeline: [rebloggedStatus, status2, status1], - unreadTimeline: [] + timeline: [rebloggedStatus, status2, status1] } }) it('should not be updated timeline', () => { DirectMessages.mutations![MUTATION_TYPES.APPEND_TIMELINE](state, rebloggedStatus) expect(state.timeline).toEqual([rebloggedStatus, status2, status1]) - expect(state.unreadTimeline).toEqual([]) }) }) }) @@ -203,14 +197,12 @@ describe('TimelineSpace/Contents/DirectMessages', () => { state = { lazyLoading: false, heading: false, - timeline: [status2, status1], - unreadTimeline: [] + timeline: [status2, status1] } }) it('should be updated timeline', () => { DirectMessages.mutations![MUTATION_TYPES.APPEND_TIMELINE](state, rebloggedStatus) - expect(state.timeline).toEqual([status2, status1]) - expect(state.unreadTimeline).toEqual([rebloggedStatus]) + expect(state.timeline).toEqual([rebloggedStatus, status2, status1]) }) }) @@ -219,14 +211,12 @@ describe('TimelineSpace/Contents/DirectMessages', () => { state = { lazyLoading: false, heading: false, - timeline: [rebloggedStatus, status2, status1], - unreadTimeline: [] + timeline: [rebloggedStatus, status2, status1] } }) it('should not be updated timeline', () => { DirectMessages.mutations![MUTATION_TYPES.APPEND_TIMELINE](state, rebloggedStatus) expect(state.timeline).toEqual([rebloggedStatus, status2, status1]) - expect(state.unreadTimeline).toEqual([]) }) }) }) diff --git a/src/renderer/components/TimelineSpace/Contents/DirectMessages.vue b/src/renderer/components/TimelineSpace/Contents/DirectMessages.vue index f67d4bbc..cf84b59b 100644 --- a/src/renderer/components/TimelineSpace/Contents/DirectMessages.vue +++ b/src/renderer/components/TimelineSpace/Contents/DirectMessages.vue @@ -1,6 +1,5 @@