fix(android): derive current channel from snapshot

This commit is contained in:
Edison Jwa
2026-05-20 14:52:34 +09:00
parent 7473878136
commit bc70da51df
+10
View File
@@ -995,6 +995,16 @@ class _BetaHomeState extends State<_BetaHome> {
void _applySnapshot(rust.BridgeSnapshot snap) {
_snapshot = snap;
for (final client in snap.clients) {
if (client.id == snap.ownClientId) {
_currentVoiceChannelId = client.channel;
_pendingVoiceChannelId = null;
_inChannel = true;
_canJoinVoiceChannel = true;
_canLeaveVoiceChannel = false;
return;
}
}
}
Future<void> _onShowDiagnostics(BuildContext context) async {