mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 11:39:42 +01:00
delete roomId comments
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
a5049fbb1f
commit
b529d1328a
@ -316,7 +316,6 @@ class ChatActivity :
|
|||||||
var startCallFromNotification: Boolean = false
|
var startCallFromNotification: Boolean = false
|
||||||
var startCallFromRoomSwitch: Boolean = false
|
var startCallFromRoomSwitch: Boolean = false
|
||||||
|
|
||||||
// lateinit var roomId: String
|
|
||||||
var voiceOnly: Boolean = true
|
var voiceOnly: Boolean = true
|
||||||
private lateinit var path: String
|
private lateinit var path: String
|
||||||
|
|
||||||
@ -522,7 +521,6 @@ class ChatActivity :
|
|||||||
private fun handleIntent(intent: Intent) {
|
private fun handleIntent(intent: Intent) {
|
||||||
val extras: Bundle? = intent.extras
|
val extras: Bundle? = intent.extras
|
||||||
|
|
||||||
// roomId = extras?.getString(KEY_ROOM_ID).orEmpty()
|
|
||||||
roomToken = extras?.getString(KEY_ROOM_TOKEN).orEmpty()
|
roomToken = extras?.getString(KEY_ROOM_TOKEN).orEmpty()
|
||||||
|
|
||||||
sharedText = extras?.getString(BundleKeys.KEY_SHARED_TEXT).orEmpty()
|
sharedText = extras?.getString(BundleKeys.KEY_SHARED_TEXT).orEmpty()
|
||||||
@ -712,7 +710,6 @@ class ChatActivity :
|
|||||||
|
|
||||||
sessionIdAfterRoomJoined = currentConversation!!.sessionId
|
sessionIdAfterRoomJoined = currentConversation!!.sessionId
|
||||||
ApplicationWideCurrentRoomHolder.getInstance().session = currentConversation!!.sessionId
|
ApplicationWideCurrentRoomHolder.getInstance().session = currentConversation!!.sessionId
|
||||||
// ApplicationWideCurrentRoomHolder.getInstance().currentRoomId = currentConversation!!.roomId
|
|
||||||
ApplicationWideCurrentRoomHolder.getInstance().currentRoomToken = currentConversation!!.token
|
ApplicationWideCurrentRoomHolder.getInstance().currentRoomToken = currentConversation!!.token
|
||||||
ApplicationWideCurrentRoomHolder.getInstance().userInRoom = conversationUser
|
ApplicationWideCurrentRoomHolder.getInstance().userInRoom = conversationUser
|
||||||
|
|
||||||
@ -782,19 +779,6 @@ class ChatActivity :
|
|||||||
|
|
||||||
is MessageInputViewModel.SendChatMessageErrorState -> {
|
is MessageInputViewModel.SendChatMessageErrorState -> {
|
||||||
binding.messagesListView.smoothScrollToPosition(0)
|
binding.messagesListView.smoothScrollToPosition(0)
|
||||||
|
|
||||||
// if (state.e is HttpException) {
|
|
||||||
// val code = state.e.code()
|
|
||||||
// if (code.toString().startsWith("2")) {
|
|
||||||
// myFirstMessage = state.message
|
|
||||||
//
|
|
||||||
// if (binding.unreadMessagesPopup.isShown) {
|
|
||||||
// binding.unreadMessagesPopup.visibility = View.GONE
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// binding.messagesListView.smoothScrollToPosition(0)
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
else -> {}
|
else -> {}
|
||||||
@ -831,7 +815,6 @@ class ChatActivity :
|
|||||||
is ChatViewModel.CreateRoomSuccessState -> {
|
is ChatViewModel.CreateRoomSuccessState -> {
|
||||||
val bundle = Bundle()
|
val bundle = Bundle()
|
||||||
bundle.putString(KEY_ROOM_TOKEN, state.roomOverall.ocs!!.data!!.token)
|
bundle.putString(KEY_ROOM_TOKEN, state.roomOverall.ocs!!.data!!.token)
|
||||||
// bundle.putString(KEY_ROOM_ID, state.roomOverall.ocs!!.data!!.roomId)
|
|
||||||
|
|
||||||
leaveRoom {
|
leaveRoom {
|
||||||
val chatIntent = Intent(context, ChatActivity::class.java)
|
val chatIntent = Intent(context, ChatActivity::class.java)
|
||||||
@ -2700,7 +2683,6 @@ class ChatActivity :
|
|||||||
) {
|
) {
|
||||||
sessionIdAfterRoomJoined = ApplicationWideCurrentRoomHolder.getInstance().session
|
sessionIdAfterRoomJoined = ApplicationWideCurrentRoomHolder.getInstance().session
|
||||||
|
|
||||||
// ApplicationWideCurrentRoomHolder.getInstance().currentRoomId = roomId
|
|
||||||
ApplicationWideCurrentRoomHolder.getInstance().currentRoomToken = roomToken
|
ApplicationWideCurrentRoomHolder.getInstance().currentRoomToken = roomToken
|
||||||
ApplicationWideCurrentRoomHolder.getInstance().userInRoom = conversationUser
|
ApplicationWideCurrentRoomHolder.getInstance().userInRoom = conversationUser
|
||||||
}
|
}
|
||||||
@ -3326,7 +3308,6 @@ class ChatActivity :
|
|||||||
currentConversation?.let {
|
currentConversation?.let {
|
||||||
val bundle = Bundle()
|
val bundle = Bundle()
|
||||||
bundle.putString(KEY_ROOM_TOKEN, roomToken)
|
bundle.putString(KEY_ROOM_TOKEN, roomToken)
|
||||||
// bundle.putString(KEY_ROOM_ID, roomId)
|
|
||||||
bundle.putString(BundleKeys.KEY_CONVERSATION_PASSWORD, roomPassword)
|
bundle.putString(BundleKeys.KEY_CONVERSATION_PASSWORD, roomPassword)
|
||||||
bundle.putString(BundleKeys.KEY_MODIFIED_BASE_URL, conversationUser?.baseUrl!!)
|
bundle.putString(BundleKeys.KEY_MODIFIED_BASE_URL, conversationUser?.baseUrl!!)
|
||||||
bundle.putString(KEY_CONVERSATION_NAME, it.displayName)
|
bundle.putString(KEY_CONVERSATION_NAME, it.displayName)
|
||||||
|
Loading…
Reference in New Issue
Block a user