Skip to content

Commit

Permalink
Ayo2
Browse files Browse the repository at this point in the history
  • Loading branch information
Hacksore committed Nov 18, 2023
1 parent 97b37c3 commit 8f66b0d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 0 additions & 2 deletions apps/desktop/src/components/user.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ import { MicOff } from "./mic-off";

export const User = ({
item,
windowSize,
}: {
item: OverlayedUser;
windowSize: number;
}) => {
const { id, selfMuted, selfDeafened, talking, avatarHash } = item;

Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/rpc/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ class SocketManager {
}
}

console.log(payload);
// console.log(payload);
// we are ready to do things cause we are fully authed
if (
payload.cmd === RPCCommand.AUTHENTICATE &&
Expand Down
5 changes: 1 addition & 4 deletions apps/desktop/src/views/channel.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
import { User } from "../components/user";
import { useAppStore } from "../store";
import { useWindowResize } from "../use-window-resize";

export const Channel = () => {
const { users } = useAppStore();
const windowSize = useWindowResize();

return (
<div>
{JSON.stringify({ windowSize })}
<div className="py-2">
{Object.entries(users).map(([_k, item]) => (
<User key={item.id} windowSize={windowSize} item={item} />
<User key={item.id} item={item} />
))}
</div>
</div>
Expand Down

0 comments on commit 8f66b0d

Please sign in to comment.