Speaking indicator

This commit is contained in:
2026-01-07 18:41:34 +01:00
parent 1577ce38e1
commit f5769716e9
6 changed files with 69 additions and 16 deletions
+6 -2
View File
@@ -21,10 +21,12 @@ export default function useApp(): App {
const [currentChannel, setCurrentChannel] = useState<Channel | null>(null);
const [server, setServer] = useState<Server>();
const privateMessages = useMessages();
const [voiceConns, SetVoiceConns] = useState<
const [voiceConns, setVoiceConns] = useState<
Record<string, Record<string, number>>
>({});
const [speaking, setSpeaking] = useState<Record<number, number>>({});
useEffect(() => {
const stored = Cookies.get("servers");
if (!stored) return;
@@ -40,8 +42,10 @@ export default function useApp(): App {
}, []);
return {
speaking,
setSpeaking,
voiceConns,
setVoiceConns: SetVoiceConns,
setVoiceConns,
privateMessages,
currentChannel,
setCurrentChannel,