Оптимизация ядра, исправление гонки потоков при получении версии
This commit is contained in:
@@ -10,11 +10,14 @@ import { AnimatedButton } from "@/app/components/AnimatedButton/AnimatedButton";
|
||||
import { useLogout } from "@/app/providers/AccountProvider/useLogout";
|
||||
import { usePacket } from "@/app/providers/ProtocolProvider/usePacket";
|
||||
import { PacketDeviceResolve, Solution } from "@/app/providers/ProtocolProvider/protocol/packets/packet.device.resolve";
|
||||
import { useCoreDevice } from "@/app/providers/DeviceProvider/useCoreDevice";
|
||||
|
||||
export function DeviceConfirm() {
|
||||
const [protocolState] = useProtocolState();
|
||||
const navigate = useNavigate();
|
||||
const logout = useLogout();
|
||||
const {deviceName} = useCoreDevice();
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
if(protocolState == ProtocolState.CONNECTED) {
|
||||
@@ -60,7 +63,7 @@ export function DeviceConfirm() {
|
||||
<Flex justify={'center'} mt={'xl'} px={'lg'} align={'center'}>
|
||||
<Flex justify={'center'} gap={'sm'} align={'center'}>
|
||||
<Text ta={'center'} c={'dimmed'} fz={12}>
|
||||
Confirm device <strong>{window.deviceName}</strong> on your first device to loading your chats.
|
||||
Confirm device <strong>{deviceName}</strong> on your first device to loading your chats.
|
||||
</Text>
|
||||
</Flex>
|
||||
</Flex>
|
||||
|
||||
Reference in New Issue
Block a user