feat(mobile): MobileChatScreen members button shows for group DMs
This commit is contained in:
@@ -82,10 +82,22 @@ export function MobileChatScreen({ params }: MobileChatScreenProps) {
|
|||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<TransferIndicator />
|
<TransferIndicator />
|
||||||
{!isDm && (
|
{/* Members button — shown for space channels AND group DMs. 1-on-1
|
||||||
|
DMs have no roster, so it stays hidden there. Tapping a space-
|
||||||
|
channel button pushes the regular `members` screen; tapping a
|
||||||
|
group-DM button pushes the new `group-dm-info` screen so the user
|
||||||
|
lands on the full info + management surface. */}
|
||||||
|
{(!isDm || isGroup) && (
|
||||||
<button
|
<button
|
||||||
onClick={() => pushMobileScreen('members')}
|
onClick={() => {
|
||||||
|
if (isDm && isGroup && channelId) {
|
||||||
|
pushMobileScreen('group-dm-info', { channelId });
|
||||||
|
} else {
|
||||||
|
pushMobileScreen('members');
|
||||||
|
}
|
||||||
|
}}
|
||||||
className="w-8 h-8 flex items-center justify-center text-txt-secondary hover:text-txt-primary"
|
className="w-8 h-8 flex items-center justify-center text-txt-secondary hover:text-txt-primary"
|
||||||
|
aria-label={isDm && isGroup ? 'Group info' : 'Members'}
|
||||||
>
|
>
|
||||||
<svg className="w-5 h-5" fill="none" viewBox="0 0 24 24" stroke="currentColor" strokeWidth={1.5}>
|
<svg className="w-5 h-5" fill="none" viewBox="0 0 24 24" stroke="currentColor" strokeWidth={1.5}>
|
||||||
<path strokeLinecap="round" strokeLinejoin="round" d="M15 19.128a9.38 9.38 0 002.625.372 9.337 9.337 0 004.121-.952 4.125 4.125 0 00-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 018.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0111.964-3.07M12 6.375a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zm8.25 2.25a2.625 2.625 0 11-5.25 0 2.625 2.625 0 015.25 0z" />
|
<path strokeLinecap="round" strokeLinejoin="round" d="M15 19.128a9.38 9.38 0 002.625.372 9.337 9.337 0 004.121-.952 4.125 4.125 0 00-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 018.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0111.964-3.07M12 6.375a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zm8.25 2.25a2.625 2.625 0 11-5.25 0 2.625 2.625 0 015.25 0z" />
|
||||||
|
|||||||
Reference in New Issue
Block a user