diff options
| author | taehoon <th.dev91@gmail.com> | 2019-07-02 14:32:46 -0400 |
|---|---|---|
| committer | taehoon <th.dev91@gmail.com> | 2019-07-02 14:32:46 -0400 |
| commit | 0e9b8be88caa8bb21891b2be5fe2eb1333aed345 (patch) | |
| tree | c9bc3707a78a39ebfee40b669f48cd997931a05d /src/modules/statuses.js | |
| parent | 221db9f210b161851dd69bed87c49d0573d30e5f (diff) | |
clear userId property of timeline by default in clearTimeline action
Diffstat (limited to 'src/modules/statuses.js')
| -rw-r--r-- | src/modules/statuses.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/statuses.js b/src/modules/statuses.js index 9b11a13e..e58a9b4c 100644 --- a/src/modules/statuses.js +++ b/src/modules/statuses.js @@ -395,8 +395,9 @@ export const mutations = { state[key] = value }) }, - clearTimeline (state, { timeline }) { - state.timelines[timeline] = emptyTl(state.timelines[timeline].userId) + clearTimeline (state, { timeline, excludeUserId = false }) { + const userId = excludeUserId ? state.timelines[timeline].userId : undefined + state.timelines[timeline] = emptyTl(userId) }, clearNotifications (state) { state.notifications = emptyNotifications() |
