[Glitch] Convert disconnectTimeline and timelineDelete actions to Typescript

Port 1c65932776 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Renaud Chaput
2024-06-20 13:56:52 +02:00
committed by Claire
parent fd867adffe
commit 8ae61fdee5
10 changed files with 63 additions and 47 deletions

View File

@@ -77,7 +77,7 @@ export const connectTimelineStream = (timelineId, channelName, params = {}, opti
},
onDisconnect() {
dispatch(disconnectTimeline(timelineId));
dispatch(disconnectTimeline({ timeline: timelineId }));
if (options.fallback) {
// @ts-expect-error