Removes duplicated draft save on DM

This commit is contained in:
Vitor Pamplona
2025-04-28 20:57:11 -04:00
parent ee675d06f6
commit 96b1565de7
@@ -132,7 +132,6 @@ import kotlinx.collections.immutable.persistentListOf
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.FlowPreview
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.collectLatest
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
@@ -162,14 +161,6 @@ fun NewGroupDMScreen(
val scope = rememberCoroutineScope()
LaunchedEffect(key1 = postViewModel.draftTag) {
launch(Dispatchers.IO) {
postViewModel.draftTag.versions.collectLatest {
postViewModel.sendDraft()
}
}
}
LaunchedEffect(Unit) {
launch(Dispatchers.IO) {
message?.ifBlank { null }?.let {