fix: remove debug-only logs that are no longer useful
Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
parent
defe13288d
commit
47890e3e02
|
|
@ -92,7 +92,6 @@ import chat.revolt.composables.generic.UserAvatar
|
||||||
import chat.revolt.composables.screens.chat.ChannelIcon
|
import chat.revolt.composables.screens.chat.ChannelIcon
|
||||||
import chat.revolt.internals.Autocomplete
|
import chat.revolt.internals.Autocomplete
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import logcat.logcat
|
|
||||||
|
|
||||||
fun Pair<Int, Int>.asTextRange(): TextRange {
|
fun Pair<Int, Int>.asTextRange(): TextRange {
|
||||||
return TextRange(this.first, this.second)
|
return TextRange(this.first, this.second)
|
||||||
|
|
@ -191,16 +190,12 @@ fun MessageField(
|
||||||
)
|
)
|
||||||
|
|
||||||
LaunchedEffect(initialValue, initialValueDirtyMarker) {
|
LaunchedEffect(initialValue, initialValueDirtyMarker) {
|
||||||
logcat { "New initial value: $initialValue" }
|
|
||||||
logcat { "Old state: $textFieldState" }
|
|
||||||
textFieldState.setTextAndPlaceCursorAtEnd(initialValue)
|
textFieldState.setTextAndPlaceCursorAtEnd(initialValue)
|
||||||
logcat { "New state: $textFieldState" }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
val scope = rememberCoroutineScope()
|
val scope = rememberCoroutineScope()
|
||||||
|
|
||||||
LaunchedEffect(textFieldState.text) {
|
LaunchedEffect(textFieldState.text) {
|
||||||
logcat { "New text is ${textFieldState.text}" }
|
|
||||||
onValueChange(textFieldState.text.toString())
|
onValueChange(textFieldState.text.toString())
|
||||||
|
|
||||||
scope.launch {
|
scope.launch {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue