🚀 Launch 2.0.0+20

🐛 Bug fixes upload chat attachment to wrong pool
📝 Update desktop title bar text
This commit is contained in:
LittleSheep 2024-12-10 21:45:27 +08:00
parent 1980843ac0
commit a9ca8d36bc
5 changed files with 10 additions and 3 deletions

View File

@ -124,6 +124,7 @@ class AppMainContent extends StatelessWidget {
final th = context.watch<ThemeProvider>();
return MaterialApp.router(
debugShowCheckedModeBanner: false,
theme: th.theme?.light,
darkTheme: th.theme?.dark,
locale: context.locale,

View File

@ -346,6 +346,12 @@ class _HomeDashNotificationWidgetState extends State<_HomeDashNotificationWidget
int? _count;
Future<void> _fetchNotificationCount() async {
final ua = context.read<UserProvider>();
if (!ua.isAuthorized) {
setState(() => _count = 0);
return;
}
final sn = context.read<SnNetworkProvider>();
final resp = await sn.client.get('/cgi/id/notifications/count');
_count = resp.data['count'];

View File

@ -79,7 +79,7 @@ class ChatMessageInputState extends State<ChatMessageInput> {
final place = await attach.chunkedUploadInitialize(
(await media.length())!,
media.name,
'interactive',
'messaging',
null,
mimetype: media.raw != null && media.type == PostWriteMediaType.image ? 'image/png' : null,
);

View File

@ -118,7 +118,7 @@ class AppRootScaffold extends StatelessWidget {
WindowTitleBarBox(
child: MoveWindow(
child: Text(
'Solian',
'Solar Network',
style: GoogleFonts.spaceGrotesk(),
).padding(horizontal: 12, vertical: 5),
),

View File

@ -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