ktlint format
This commit is contained in:
parent
14e56b8f7d
commit
26eaa843b3
|
@ -21,7 +21,6 @@ import com.zhuinden.monarchy.Monarchy
|
||||||
import dagger.assisted.Assisted
|
import dagger.assisted.Assisted
|
||||||
import dagger.assisted.AssistedFactory
|
import dagger.assisted.AssistedFactory
|
||||||
import dagger.assisted.AssistedInject
|
import dagger.assisted.AssistedInject
|
||||||
import io.realm.Realm
|
|
||||||
import io.realm.Sort
|
import io.realm.Sort
|
||||||
import io.realm.kotlin.where
|
import io.realm.kotlin.where
|
||||||
import org.matrix.android.sdk.api.MatrixCoroutineDispatchers
|
import org.matrix.android.sdk.api.MatrixCoroutineDispatchers
|
||||||
|
|
|
@ -63,7 +63,6 @@ class CommandParser @Inject constructor() {
|
||||||
val slashCommand = messageParts.first()
|
val slashCommand = messageParts.first()
|
||||||
val message = textMessage.substring(slashCommand.length).trim()
|
val message = textMessage.substring(slashCommand.length).trim()
|
||||||
|
|
||||||
|
|
||||||
getNotSupportedByThreads(isInThreadTimeline, slashCommand)?.let {
|
getNotSupportedByThreads(isInThreadTimeline, slashCommand)?.let {
|
||||||
return ParsedCommand.ErrorCommandNotSupportedInThreads(it)
|
return ParsedCommand.ErrorCommandNotSupportedInThreads(it)
|
||||||
}
|
}
|
||||||
|
|
|
@ -283,7 +283,7 @@ class MessageComposerViewModel @AssistedInject constructor(
|
||||||
replyInThreadText = slashCommandResult.message,
|
replyInThreadText = slashCommandResult.message,
|
||||||
msgType = MessageType.MSGTYPE_EMOTE,
|
msgType = MessageType.MSGTYPE_EMOTE,
|
||||||
autoMarkdown = action.autoMarkdown)
|
autoMarkdown = action.autoMarkdown)
|
||||||
}else{
|
} else {
|
||||||
room.sendTextMessage(slashCommandResult.message, msgType = MessageType.MSGTYPE_EMOTE, autoMarkdown = action.autoMarkdown)
|
room.sendTextMessage(slashCommandResult.message, msgType = MessageType.MSGTYPE_EMOTE, autoMarkdown = action.autoMarkdown)
|
||||||
}
|
}
|
||||||
_viewEvents.post(MessageComposerViewEvents.SlashCommandResultOk())
|
_viewEvents.post(MessageComposerViewEvents.SlashCommandResultOk())
|
||||||
|
|
Loading…
Reference in New Issue