fix(notification): open tapped chat at bottom (#984)
Co-authored-by: M57 <41645758+Hy4ri@users.noreply.github.com>
This commit is contained in:
1 parent
19065f02df
commit
ce8fdc45bd
4 files changed
+65
-7
No files matched your search
@@ -96,6 +96,6 @@ class MainActivity : ComponentActivity() {
|
||||
if (intent?.action != ACTION_OPEN_CHAT_FROM_NOTIFICATION) return
|
||||
val sessionId = intent.getStringExtra(NotificationReplyReceiver.EXTRA_SESSION_ID)
|
||||
intent.removeExtra(NotificationReplyReceiver.EXTRA_SESSION_ID)
|
||||
sessionId?.takeIf { it.isNotBlank() }?.let(NavigationController::openChatSession)
|
||||
sessionId?.takeIf { it.isNotBlank() }?.let(NavigationController::openChatSessionFromNotification)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user