fix to open Conversation List for onBackPressed when switched chats

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2023-04-02 21:03:32 +02:00
parent 63b2455745
commit 5fc69201fe
No known key found for this signature in database
GPG Key ID: C793F8B59F43CE7B

View File

@ -1018,6 +1018,7 @@ class ChatActivity :
leaveRoom {
val chatIntent = Intent(context, ChatActivity::class.java)
chatIntent.putExtras(bundle)
chatIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)
startActivity(chatIntent)
}
}
@ -3086,6 +3087,7 @@ class ChatActivity :
leaveRoom {
val chatIntent = Intent(context, ChatActivity::class.java)
chatIntent.putExtras(bundle)
chatIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)
startActivity(chatIntent)
}
}
@ -3404,6 +3406,7 @@ class ChatActivity :
leaveRoom {
val chatIntent = Intent(context, ChatActivity::class.java)
chatIntent.putExtras(bundle)
chatIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)
startActivity(chatIntent)
}
} else {