diff --git a/android/.kotlin/sessions/kotlin-compiler-9339312346383169436.salive b/android/.kotlin/sessions/kotlin-compiler-9339312346383169436.salive new file mode 100644 index 0000000..e69de29 diff --git a/lib/chats_screen.dart b/lib/chats_screen.dart index e11d718..55a40c3 100644 --- a/lib/chats_screen.dart +++ b/lib/chats_screen.dart @@ -1027,7 +1027,7 @@ class _ChatsScreenState extends State color: Theme.of(context).colorScheme.onSecondaryContainer, ), ), - title: const Text('Присоединиться к группе'), + title: const Text('Присоединиться по ссылке'), subtitle: const Text('По ссылке-приглашению'), onTap: () { Navigator.pop(context); diff --git a/lib/join_group_screen.dart b/lib/join_group_screen.dart index 2ea4f94..76ec583 100644 --- a/lib/join_group_screen.dart +++ b/lib/join_group_screen.dart @@ -55,6 +55,28 @@ class _JoinGroupScreenState extends State { Navigator.of(context).pop(); } + // Обработка успешной подписки на канал (opcode 57) + if (message['cmd'] == 1 && message['opcode'] == 57) { + setState(() { + _isLoading = false; + }); + + ScaffoldMessenger.of(context).showSnackBar( + SnackBar( + content: const Text('Успешно подписались на канал!'), + backgroundColor: Colors.green, + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(12), + ), + behavior: SnackBarBehavior.floating, + margin: const EdgeInsets.all(10), + ), + ); + + Navigator.of(context).pop(); + } + + // Обработка ошибки подписки на канал (opcode 57) if (message['cmd'] == 3 && message['opcode'] == 57) { setState(() { _isLoading = false; diff --git a/lib/theme_provider.dart b/lib/theme_provider.dart index 77a886f..34caada 100644 --- a/lib/theme_provider.dart +++ b/lib/theme_provider.dart @@ -108,7 +108,7 @@ class CustomThemePreset { CustomThemePreset({ required this.id, required this.name, - this.appTheme = AppTheme.system, + this.appTheme = AppTheme.dark, this.accentColor = Colors.blue, this.useCustomChatWallpaper = false, this.chatWallpaperType = ChatWallpaperType.solid,