mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 19:49:33 +01:00
minor refactoring
to be discussed: does it make sense to show a dialog instead? At least when it's created via 1:1 conversation Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
e7ab3aab0d
commit
c2ad89f7fb
@ -1598,21 +1598,17 @@ class ChatActivity :
|
||||
private fun switchToRoom(token: String, startCallAfterRoomSwitch: Boolean, isVoiceOnlyCall: Boolean) {
|
||||
if (conversationUser != null) {
|
||||
runOnUiThread {
|
||||
if (currentConversation?.objectType == ConversationEnums.ObjectType.ROOM) {
|
||||
// do not replace with snackbar, as it would disappear with the activity switch
|
||||
Toast.makeText(
|
||||
context,
|
||||
context.resources.getString(R.string.switch_to_main_room),
|
||||
Toast.LENGTH_LONG
|
||||
).show()
|
||||
val toastInfo = if (currentConversation?.objectType == ConversationEnums.ObjectType.ROOM) {
|
||||
context.resources.getString(R.string.switch_to_main_room)
|
||||
} else {
|
||||
// do not replace with snackbar, as it would disappear with the activity switch
|
||||
Toast.makeText(
|
||||
context,
|
||||
context.resources.getString(R.string.switch_to_breakout_room),
|
||||
Toast.LENGTH_LONG
|
||||
).show()
|
||||
context.resources.getString(R.string.switch_to_breakout_room)
|
||||
}
|
||||
// do not replace with snackbar, as it would disappear with the activity switch
|
||||
Toast.makeText(
|
||||
context,
|
||||
toastInfo,
|
||||
Toast.LENGTH_LONG
|
||||
).show()
|
||||
}
|
||||
|
||||
val bundle = Bundle()
|
||||
|
Loading…
Reference in New Issue
Block a user