fix(android): show password action only for locked channels

This commit is contained in:
Edison Jwa
2026-05-20 14:52:34 +09:00
parent 273eaf21c1
commit f8b6485390
8 changed files with 38 additions and 11 deletions
+8 -7
View File
@@ -2152,13 +2152,14 @@ class _SnapshotView extends StatelessWidget {
: Row(
mainAxisSize: MainAxisSize.min,
children: [
IconButton(
icon: const Icon(Icons.lock_outline),
tooltip: l10n.channelPasswordTitle,
onPressed: hasJoinPending
? null
: () => onJoinChannelWithPassword(ch),
),
if (ch.hasPassword)
IconButton(
icon: const Icon(Icons.lock_outline),
tooltip: l10n.channelPasswordTitle,
onPressed: hasJoinPending
? null
: () => onJoinChannelWithPassword(ch),
),
IconButton(
icon: Icon(
ch.id == pendingVoiceChannelId