use streaming API by default
This commit is contained in:
parent
238ebcf1e4
commit
fd9f78a7a1
3 changed files with 4 additions and 2 deletions
|
@ -4,6 +4,8 @@
|
||||||
|
|
||||||
.emoji {
|
.emoji {
|
||||||
--_still_image-label-scale: 0.5;
|
--_still_image-label-scale: 0.5;
|
||||||
|
width: 50px;
|
||||||
|
height: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
& .text,
|
& .text,
|
||||||
|
|
|
@ -47,7 +47,7 @@ const chats = {
|
||||||
const fetcher = () => dispatch('fetchChats', { latest: true })
|
const fetcher = () => dispatch('fetchChats', { latest: true })
|
||||||
fetcher()
|
fetcher()
|
||||||
commit('setChatListFetcher', {
|
commit('setChatListFetcher', {
|
||||||
fetcher: () => promiseInterval(fetcher, 5000)
|
fetcher: () => promiseInterval(fetcher, 60000)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
stopFetchingChats ({ commit }) {
|
stopFetchingChats ({ commit }) {
|
||||||
|
|
|
@ -55,7 +55,7 @@ export const defaultState = {
|
||||||
highlight: {},
|
highlight: {},
|
||||||
interfaceLanguage: browserLocale,
|
interfaceLanguage: browserLocale,
|
||||||
hideScopeNotice: false,
|
hideScopeNotice: false,
|
||||||
useStreamingApi: false,
|
useStreamingApi: true,
|
||||||
sidebarRight: undefined, // instance default
|
sidebarRight: undefined, // instance default
|
||||||
scopeCopy: undefined, // instance default
|
scopeCopy: undefined, // instance default
|
||||||
subjectLineBehavior: undefined, // instance default
|
subjectLineBehavior: undefined, // instance default
|
||||||
|
|
Loading…
Reference in a new issue