diff --git a/app/src/main/java/com/rosetta/messenger/MainActivity.kt b/app/src/main/java/com/rosetta/messenger/MainActivity.kt index af29539..959f449 100644 --- a/app/src/main/java/com/rosetta/messenger/MainActivity.kt +++ b/app/src/main/java/com/rosetta/messenger/MainActivity.kt @@ -716,7 +716,8 @@ fun MainScreen( // 3. This callback updates UI state immediately accountName = name accountUsername = username - reloadTrigger++ + // Don't reload from DB immediately - it's async and may not be ready yet + // The values are already updated above and DB is updated in ProfileScreen Log.d("MainActivity", "Profile saved: name=$name, username=$username, UI updated") }, onLogout = onLogout,