fix streaming for some streams
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
FloatingGhost 2023-04-14 16:14:27 +01:00
parent ed237e4d0e
commit 02869b6aed

View file

@ -91,7 +91,7 @@ export const connectTimelineStream = (timelineId, channelName, params = {}, opti
onReceive (data) { onReceive (data) {
switch(data.event) { switch(data.event) {
case 'update': case 'update':
if (this.shouldUpdate(timelineId, data.stream)) { if ((timelineId === 'home' && data.stream[0].startsWith('user')) || (timelineId === 'community' && data.stream[0].startsWith('public')) || (timelineId === data.stream[0])) {
dispatch(updateTimeline(timelineId, JSON.parse(data.payload), options.accept)); dispatch(updateTimeline(timelineId, JSON.parse(data.payload), options.accept));
} }
break; break;