From b6896ded23db421e71de0ecf1f6e5e863c924107 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Mon, 13 Oct 2025 00:55:45 +0800 Subject: [PATCH] :bug: Fix compose settings bugs --- lib/widgets/post/compose_settings_sheet.dart | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/lib/widgets/post/compose_settings_sheet.dart b/lib/widgets/post/compose_settings_sheet.dart index 6d66329d..391db9a4 100644 --- a/lib/widgets/post/compose_settings_sheet.dart +++ b/lib/widgets/post/compose_settings_sheet.dart @@ -517,6 +517,25 @@ class ComposeSettingsSheet extends HookConsumerWidget { ], ).padding(left: 16, right: 8), ), + // Include current realm if it's not null and not in joined realms + if (currentRealm != null && + !(userRealms.value ?? []).any( + (r) => r.id == currentRealm.id, + )) + DropdownMenuItem( + value: currentRealm, + child: Row( + children: [ + ProfilePictureWidget( + fileId: currentRealm.picture?.id, + fallbackIcon: Symbols.workspaces, + radius: 16, + ), + const SizedBox(width: 12), + Text(currentRealm.name), + ], + ).padding(left: 16, right: 8), + ), if (userRealms.hasValue) ...(userRealms.value ?? []).map( (realm) => DropdownMenuItem(