Improved indicators
This commit is contained in:
@@ -68,7 +68,9 @@ export default function DMs() {
|
||||
break;
|
||||
}
|
||||
}}
|
||||
indicators={indicators}
|
||||
indicators={indicators.filter(
|
||||
(indicator) => indicator.indicator.params.user_id !== app.profile?.id
|
||||
)}
|
||||
/>
|
||||
</AppLayout>
|
||||
) : (
|
||||
|
||||
@@ -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
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user