test: fix broken dm test
All checks were successful
Queue Release Build / prepare (push) Successful in 23s
Deploy Web Apps / deploy (push) Successful in 6m5s
Queue Release Build / build-windows (push) Successful in 17m1s
Queue Release Build / build-linux (push) Successful in 29m15s
Queue Release Build / finalize (push) Successful in 38s

This commit is contained in:
2026-04-27 22:48:45 +02:00
parent 66c6f34cd3
commit ec3802ade6
4 changed files with 59 additions and 5 deletions

View File

@@ -29,7 +29,7 @@ export function setupDataChannel(
channel: RTCDataChannel,
remotePeerId: string
): void {
const { logger } = context;
const { logger, state } = context;
channel.onopen = () => {
logger.info('[data-channel] Data channel open', {
@@ -40,6 +40,8 @@ export function setupDataChannel(
protocol: channel.protocol || null
});
state.peerConnected$.next(remotePeerId);
sendCurrentStatesToChannel(context, channel, remotePeerId);
try {