lint fixes
This commit is contained in:
parent
64350ad912
commit
8dcf72d144
|
@ -67,7 +67,6 @@ export async function updateVerifyCredentialsForInstance (instanceName) {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export async function updateInstanceInfo (instanceName) {
|
export async function updateInstanceInfo (instanceName) {
|
||||||
await cacheFirstUpdateAfter(
|
await cacheFirstUpdateAfter(
|
||||||
() => getInstanceInfo(instanceName),
|
() => getInstanceInfo(instanceName),
|
||||||
|
|
|
@ -18,6 +18,4 @@ export async function updatePinnedStatusesForAccount(accountId) {
|
||||||
store.set({pinnedStatuses: $pinnedStatuses})
|
store.set({pinnedStatuses: $pinnedStatuses})
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
|
@ -50,7 +50,7 @@ function handleStreamMessage (instanceName, timelineName, message) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function createStream (streamingApi, instanceName, accessToken, timelineName) {
|
export function createStream (streamingApi, instanceName, accessToken, timelineName) {
|
||||||
new TimelineStream(streamingApi, accessToken, timelineName, {
|
return new TimelineStream(streamingApi, accessToken, timelineName, {
|
||||||
onMessage (msg) {
|
onMessage (msg) {
|
||||||
console.log('message', msg)
|
console.log('message', msg)
|
||||||
if (msg.event !== 'update' && msg.event !== 'delete') {
|
if (msg.event !== 'update' && msg.event !== 'delete') {
|
||||||
|
|
|
@ -2,7 +2,6 @@ import { updateInstanceInfo } from '../_actions/instances'
|
||||||
import { createStream } from '../_actions/streaming'
|
import { createStream } from '../_actions/streaming'
|
||||||
|
|
||||||
export function timelineObservers (store) {
|
export function timelineObservers (store) {
|
||||||
|
|
||||||
let currentTimelineStream
|
let currentTimelineStream
|
||||||
|
|
||||||
store.observe('currentTimeline', async (currentTimeline) => {
|
store.observe('currentTimeline', async (currentTimeline) => {
|
||||||
|
|
Loading…
Reference in a new issue