diff options
| author | Shpuld Shpuldson <shp@cock.li> | 2020-09-04 11:19:53 +0300 |
|---|---|---|
| committer | Shpuld Shpuldson <shp@cock.li> | 2020-09-04 11:19:53 +0300 |
| commit | 3fb35e8123d3a8cd151571b315b7ec4d7e0875c7 (patch) | |
| tree | e473ffedfea68b8a3a5f661182e2e23928877510 /src/components | |
| parent | 5b403ba7d13eaf851ae43e814c583ceb018e2d20 (diff) | |
rename to promiseInterval
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/chat/chat.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/chat/chat.js b/src/components/chat/chat.js index 2062643d..15123885 100644 --- a/src/components/chat/chat.js +++ b/src/components/chat/chat.js @@ -5,7 +5,7 @@ import ChatMessage from '../chat_message/chat_message.vue' import PostStatusForm from '../post_status_form/post_status_form.vue' import ChatTitle from '../chat_title/chat_title.vue' import chatService from '../../services/chat_service/chat_service.js' -import { makeFetcher } from '../../services/fetcher/fetcher.js' +import { promiseInterval } from '../../services/promise_interval/promise_interval.js' import { getScrollPosition, getNewTopPosition, isBottomedOut, scrollableContainerHeight } from './chat_layout_utils.js' const BOTTOMED_OUT_OFFSET = 10 @@ -288,7 +288,7 @@ const Chat = { }, doStartFetching () { this.$store.dispatch('startFetchingCurrentChat', { - fetcher: () => makeFetcher(() => this.fetchChat({ fetchLatest: true }), 5000) + fetcher: () => promiseInterval(() => this.fetchChat({ fetchLatest: true }), 5000) }) this.fetchChat({ isFirstFetch: true }) }, |
