refactor(watch-together): share host peer IDs

This commit is contained in:
edde746
2026-07-12 08:42:22 +02:00
parent 65d3d8e471
commit 79dabaf125
4 changed files with 19 additions and 2 deletions
@@ -10,6 +10,7 @@ import '../../i18n/strings.g.dart';
import '../../services/base_peer_service.dart';
import '../../utils/app_logger.dart';
import '../models/sync_message.dart';
import '../primitives.dart';
// Re-export so existing callers that import from here keep working.
export '../../services/base_peer_service.dart' show PeerError, PeerErrorType;
@@ -352,7 +353,7 @@ class WatchTogetherPeerService with KeepaliveMixin {
_isHost = true;
_sessionId = sessionId?.toUpperCase() ?? _generateSessionId();
_myPeerId = 'wt-$_sessionId';
_myPeerId = watchTogetherHostPeerId(_sessionId!);
_reconnectAttempts = 0;
try {