Moves sending message on channel from the main thread to the IO thread

This commit is contained in:
Vitor Pamplona 2023-06-08 16:30:29 -04:00
parent 8b852d32e4
commit 9589f68028

View File

@ -221,7 +221,7 @@ fun ChannelScreen(
// LAST ROW
EditFieldRow(newPostModel, isPrivate = false, accountViewModel = accountViewModel) {
scope.launch {
scope.launch(Dispatchers.IO) {
val tagger = NewMessageTagger(
channelHex = channel.idHex,
mentions = listOfNotNull(replyTo.value?.author),