fix(android): prompt from locked channel rows

This commit is contained in:
Edison Jwa
2026-05-20 14:52:34 +09:00
parent f8b6485390
commit 48a38dba46
+17 -14
View File
@@ -2160,20 +2160,21 @@ class _SnapshotView extends StatelessWidget {
? null
: () => onJoinChannelWithPassword(ch),
),
IconButton(
icon: Icon(
ch.id == pendingVoiceChannelId
? Icons.hourglass_top
: Icons.login,
if (!ch.hasPassword)
IconButton(
icon: Icon(
ch.id == pendingVoiceChannelId
? Icons.hourglass_top
: Icons.login,
),
tooltip: ch.id == pendingVoiceChannelId
? l10n.statusConnecting
: l10n.joinChannelAction,
onPressed:
hasJoinPending || ch.id == pendingVoiceChannelId
? null
: () => onJoinChannel(ch),
),
tooltip: ch.id == pendingVoiceChannelId
? l10n.statusConnecting
: l10n.joinChannelAction,
onPressed:
hasJoinPending || ch.id == pendingVoiceChannelId
? null
: () => onJoinChannel(ch),
),
],
),
selected: ch.id == currentVoiceChannelId,
@@ -2182,7 +2183,9 @@ class _SnapshotView extends StatelessWidget {
!canJoinVoiceChannel ||
ch.id == currentVoiceChannelId
? null
: () => onJoinChannel(ch),
: () => ch.hasPassword
? onJoinChannelWithPassword(ch)
: onJoinChannel(ch),
),
),
for (final cl in byChannel[ch.id] ?? const <rust.BridgeClient>[])