fix(android): show password action only for locked channels
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user