Improved indicators

This commit is contained in:
2025-12-23 15:57:21 +01:00
parent 0c5817e42c
commit baa18fe9f7
3 changed files with 9 additions and 11 deletions
+3 -1
View File
@@ -68,7 +68,9 @@ export default function DMs() {
break; break;
} }
}} }}
indicators={indicators} indicators={indicators.filter(
(indicator) => indicator.indicator.params.user_id !== app.profile?.id
)}
/> />
</AppLayout> </AppLayout>
) : ( ) : (
+4 -1
View File
@@ -33,7 +33,10 @@ export default function ChannelView({
while (serverRef.current?.CONNECTING) {} while (serverRef.current?.CONNECTING) {}
serverRef.current?.send(JSON.stringify(req)); serverRef.current?.send(JSON.stringify(req));
}} }}
indicators={indicators} indicators={indicators.filter(
(indicator) =>
indicator.indicator.params.user_id !== app.profile?.id
)}
/> />
); );
+2 -9
View File
@@ -69,15 +69,8 @@ export default async function auth({
switch (msg.type) { switch (msg.type) {
case "authenticated": case "authenticated":
// ws.send( if (!onIndicator) break;
// JSON.stringify({ msg.params.indicators.forEach(onIndicator);
// type: "load_chunk",
// params: {
// channel_id: "general",
// chunk_id: 0,
// },
// })
// );
break; break;
case "message_create": case "message_create":