fix: prettier formatting in PollContent and MediaGallery

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-03 11:40:28 -04:00
parent 0370ed525a
commit 10cda6b632
2 changed files with 3 additions and 8 deletions
@@ -70,9 +70,8 @@ function computeVotes(
answerIds = (content['m.selections'] as string[] | undefined) ?? [];
} else {
answerIds =
((content['org.matrix.msc3381.poll.response'] as any)?.answers as
| string[]
| undefined) ?? [];
((content['org.matrix.msc3381.poll.response'] as any)?.answers as string[] | undefined) ??
[];
}
if (answerIds.length === 0) continue;
const ts = ev.getTs();
+1 -5
View File
@@ -237,11 +237,7 @@ export function MediaGallery({ room, onClose }: MediaGalleryProps) {
</Box>
</Header>
<Box
shrink="No"
gap="100"
style={{ padding: `${config.space.S200} ${config.space.S200} 0` }}
>
<Box shrink="No" gap="100" style={{ padding: `${config.space.S200} ${config.space.S200} 0` }}>
{(Object.keys(TAB_LABELS) as GalleryTab[]).map((t) => (
<TabButton key={t} label={TAB_LABELS[t]} active={tab === t} onClick={() => setTab(t)} />
))}