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;
}
}}
indicators={indicators}
indicators={indicators.filter(
(indicator) => indicator.indicator.params.user_id !== app.profile?.id
)}
/>
</AppLayout>
) : (
+4 -1
View File
@@ -33,7 +33,10 @@ export default function ChannelView({
while (serverRef.current?.CONNECTING) {}
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) {
case "authenticated":
// ws.send(
// JSON.stringify({
// type: "load_chunk",
// params: {
// channel_id: "general",
// chunk_id: 0,
// },
// })
// );
if (!onIndicator) break;
msg.params.indicators.forEach(onIndicator);
break;
case "message_create":