Improved indicators
This commit is contained in:
@@ -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>
|
||||||
) : (
|
) : (
|
||||||
|
|||||||
@@ -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
@@ -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":
|
||||||
|
|||||||
Reference in New Issue
Block a user