open new conversation after creating it in 1to1 chat

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2025-03-27 13:03:03 +01:00
parent fa5570e901
commit e7ab3aab0d
No known key found for this signature in database
GPG Key ID: C793F8B59F43CE7B

View File

@ -92,6 +92,7 @@ import com.nextcloud.talk.utils.DateUtils
import com.nextcloud.talk.utils.ShareUtils
import com.nextcloud.talk.utils.SpreedFeatures
import com.nextcloud.talk.utils.bundle.BundleKeys
import com.nextcloud.talk.utils.bundle.BundleKeys.KEY_ROOM_TOKEN
import com.nextcloud.talk.utils.preferences.preferencestorage.DatabaseStorageModule
import eu.davidea.flexibleadapter.FlexibleAdapter
import eu.davidea.flexibleadapter.common.SmoothScrollLinearLayoutManager
@ -254,8 +255,12 @@ class ConversationInfoActivity :
viewModel.createRoomViewState.observe(this) { state ->
when (state) {
is ConversationInfoViewModel.CreateRoomUIState.Success -> {
// for now noting is done here.
// the breakout room signaling message should be triggered and conversation should be switched.
state.room.ocs?.data?.token?.let { token ->
val chatIntent = Intent(context, ChatActivity::class.java).apply {
putExtra(KEY_ROOM_TOKEN, token)
}
startActivity(chatIntent)
}
}
is ConversationInfoViewModel.CreateRoomUIState.Error -> {