feat(chat): stabilize multi-image attachment picker (#986)

This commit is contained in:
AlexDev_
2026-08-27 10:50:55 +03:00
committed by GitHub
parent c7d7abf4a1
commit 0ae5ed4db2
11 changed files with 432 additions and 55 deletions
@@ -75,19 +75,21 @@ class MainActivity : ComponentActivity() {
consumeNotificationIntent(intent)
}
override fun onStart() {
super.onStart()
override fun onResume() {
super.onResume()
NotificationHelper.setAppForeground(this, true)
ExternalActivityLifecycleGuard.onHostResumed()
NotificationHelper.stop(this)
if (AuthManager.isGatedMode() || !AuthManager.getToken().isNullOrBlank()) {
HermesWsClient.connect()
}
}
override fun onStop() {
override fun onPause() {
ExternalActivityLifecycleGuard.onHostPaused()
NotificationHelper.setAppForeground(this, false)
NotificationHelper.start(this)
super.onStop()
super.onPause()
}
private fun consumeNotificationIntent(intent: Intent?) {