Skip to content

Commit

Permalink
fix discussion create new post with incorrect id (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
hryh27 authored Jul 17, 2023
1 parent 96c843f commit 71a1de2
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

package org.openedx.discussion.presentation.threads

import android.content.res.Configuration
import android.content.res.Configuration.UI_MODE_NIGHT_NO
import android.content.res.Configuration.UI_MODE_NIGHT_YES
import android.os.Bundle
Expand All @@ -23,7 +22,6 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.platform.ComposeView
import androidx.compose.ui.platform.LocalConfiguration
import androidx.compose.ui.platform.LocalFocusManager
import androidx.compose.ui.platform.LocalSoftwareKeyboardController
import androidx.compose.ui.platform.ViewCompositionStrategy
Expand All @@ -38,13 +36,13 @@ import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import androidx.core.os.bundleOf
import androidx.fragment.app.Fragment
import kotlinx.coroutines.launch
import org.koin.androidx.viewmodel.ext.android.viewModel
import org.koin.core.parameter.parametersOf
import org.openedx.core.UIMessage
import org.openedx.core.ui.*
import org.openedx.core.ui.theme.*
import org.openedx.discussion.domain.model.DiscussionType
import kotlinx.coroutines.launch
import org.koin.androidx.viewmodel.ext.android.viewModel
import org.koin.core.parameter.parametersOf
import org.openedx.discussion.R as discussionR

class DiscussionAddThreadFragment : Fragment() {
Expand Down Expand Up @@ -391,7 +389,7 @@ private fun DiscussionAddThreadScreen(
onClick = {
onPostDiscussionClick(
discussionType,
topicData.second,
postToTopic.second,
titleValue,
discussionValue,
followPost
Expand Down

0 comments on commit 71a1de2

Please sign in to comment.