diff --git a/lib/main.dart b/lib/main.dart index 06ae709..726e9f0 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -124,6 +124,7 @@ class AppMainContent extends StatelessWidget { final th = context.watch(); return MaterialApp.router( + debugShowCheckedModeBanner: false, theme: th.theme?.light, darkTheme: th.theme?.dark, locale: context.locale, diff --git a/lib/screens/home.dart b/lib/screens/home.dart index fa26b61..a107d86 100644 --- a/lib/screens/home.dart +++ b/lib/screens/home.dart @@ -346,6 +346,12 @@ class _HomeDashNotificationWidgetState extends State<_HomeDashNotificationWidget int? _count; Future _fetchNotificationCount() async { + final ua = context.read(); + if (!ua.isAuthorized) { + setState(() => _count = 0); + return; + } + final sn = context.read(); final resp = await sn.client.get('/cgi/id/notifications/count'); _count = resp.data['count']; diff --git a/lib/widgets/chat/chat_message_input.dart b/lib/widgets/chat/chat_message_input.dart index c1a773b..dbb662d 100644 --- a/lib/widgets/chat/chat_message_input.dart +++ b/lib/widgets/chat/chat_message_input.dart @@ -79,7 +79,7 @@ class ChatMessageInputState extends State { final place = await attach.chunkedUploadInitialize( (await media.length())!, media.name, - 'interactive', + 'messaging', null, mimetype: media.raw != null && media.type == PostWriteMediaType.image ? 'image/png' : null, ); diff --git a/lib/widgets/navigation/app_scaffold.dart b/lib/widgets/navigation/app_scaffold.dart index 79625ad..c578432 100644 --- a/lib/widgets/navigation/app_scaffold.dart +++ b/lib/widgets/navigation/app_scaffold.dart @@ -118,7 +118,7 @@ class AppRootScaffold extends StatelessWidget { WindowTitleBarBox( child: MoveWindow( child: Text( - 'Solian', + 'Solar Network', style: GoogleFonts.spaceGrotesk(), ).padding(horizontal: 12, vertical: 5), ), diff --git a/pubspec.yaml b/pubspec.yaml index c989a0c..2e84c1e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 2.0.0+19 +version: 2.0.0+20 environment: sdk: ^3.5.4