mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-09 10:15:26 +00:00
100 error milestone.
Remove hooks completely. :)
This commit is contained in:
@@ -6,8 +6,6 @@ import styled from "styled-components";
|
||||
import { Text } from "preact-i18n";
|
||||
import { useContext } from "preact/hooks";
|
||||
|
||||
import { useData } from "../../../mobx/State";
|
||||
|
||||
import {
|
||||
VoiceContext,
|
||||
VoiceOperationsContext,
|
||||
@@ -77,14 +75,13 @@ export default observer(({ id }: Props) => {
|
||||
const { isProducing, startProducing, stopProducing, disconnect } =
|
||||
useContext(VoiceOperationsContext);
|
||||
|
||||
const store = useData();
|
||||
const client = useClient();
|
||||
const self = store.users.get(client.user!._id);
|
||||
const self = client.users.get(client.user!._id);
|
||||
|
||||
//const ctx = useForceUpdate();
|
||||
//const self = useSelf(ctx);
|
||||
const keys = participants ? Array.from(participants.keys()) : undefined;
|
||||
const users = keys?.map((key) => store.users.get(key));
|
||||
const users = keys?.map((key) => client.users.get(key));
|
||||
|
||||
return (
|
||||
<VoiceBase>
|
||||
|
||||
Reference in New Issue
Block a user