feat: Preload emojis asynchronously and improve keyboard height handling in ChatDetailScreen

This commit is contained in:
k1ngsterr1
2026-01-14 00:03:37 +05:00
parent dfaef56fb7
commit f9c1425403
3 changed files with 26 additions and 11 deletions

View File

@@ -38,6 +38,7 @@ import com.rosetta.messenger.ui.chats.ChatsListScreen
import com.rosetta.messenger.ui.chats.ChatDetailScreen
import com.rosetta.messenger.ui.chats.SearchScreen
import com.rosetta.messenger.network.SearchUser
import com.rosetta.messenger.ui.components.EmojiCache
import com.rosetta.messenger.ui.onboarding.OnboardingScreen
import com.rosetta.messenger.ui.splash.SplashScreen
import com.rosetta.messenger.ui.theme.RosettaAndroidTheme
@@ -58,6 +59,9 @@ class MainActivity : ComponentActivity() {
// 🔥 Инициализируем ProtocolManager для обработки онлайн статусов
ProtocolManager.initialize(this)
// 🚀 Предзагружаем эмодзи в фоне для мгновенного открытия пикера
EmojiCache.preload(this)
setContent {
val scope = rememberCoroutineScope()
val isDarkTheme by preferencesManager.isDarkTheme.collectAsState(initial = true)