Moves sending message on channel from the main thread to the IO thread
This commit is contained in:
@@ -221,7 +221,7 @@ fun ChannelScreen(
|
|||||||
|
|
||||||
// LAST ROW
|
// LAST ROW
|
||||||
EditFieldRow(newPostModel, isPrivate = false, accountViewModel = accountViewModel) {
|
EditFieldRow(newPostModel, isPrivate = false, accountViewModel = accountViewModel) {
|
||||||
scope.launch {
|
scope.launch(Dispatchers.IO) {
|
||||||
val tagger = NewMessageTagger(
|
val tagger = NewMessageTagger(
|
||||||
channelHex = channel.idHex,
|
channelHex = channel.idHex,
|
||||||
mentions = listOfNotNull(replyTo.value?.author),
|
mentions = listOfNotNull(replyTo.value?.author),
|
||||||
|
|||||||
Reference in New Issue
Block a user