fix(android): use row-only channel joins

This commit is contained in:
Edison Jwa
2026-05-20 14:52:34 +09:00
parent 48a38dba46
commit 34121b2eb7
+9 -30
View File
@@ -2147,36 +2147,15 @@ class _SnapshotView extends StatelessWidget {
),
title: Text(ch.name),
subtitle: Text('id=${ch.id} parent=${ch.parent}'),
trailing: ch.id == currentVoiceChannelId
? null
: Row(
mainAxisSize: MainAxisSize.min,
children: [
if (ch.hasPassword)
IconButton(
icon: const Icon(Icons.lock_outline),
tooltip: l10n.channelPasswordTitle,
onPressed: hasJoinPending
? null
: () => onJoinChannelWithPassword(ch),
),
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),
),
],
),
trailing: ch.hasPassword && ch.id != currentVoiceChannelId
? Tooltip(
message: l10n.channelPasswordTitle,
child: Icon(
Icons.lock_outline,
color: theme.colorScheme.onSurfaceVariant,
),
)
: null,
selected: ch.id == currentVoiceChannelId,
onTap:
hasJoinPending ||