Skip to content
Snippets Groups Projects
Verified Commit 2e1c1814 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Fixes #101

parent a5671c89
No related branches found
No related tags found
No related merge requests found
......@@ -176,13 +176,15 @@ class ChatlineFragment : ServiceBoundFragment() {
} to ircFormatSerializer.toEscapeCodes(SpannableString(it))
}
for ((stripped, _) in lines) {
viewModel.addRecentlySentMessage(stripped)
}
viewModel.session { sessionOptional ->
val session = sessionOptional.orNull()
viewModel.buffer { bufferId ->
session?.bufferSyncer?.bufferInfo(bufferId)?.also { bufferInfo ->
val output = mutableListOf<IAliasManager.Command>()
for ((stripped, formatted) in lines) {
viewModel.addRecentlySentMessage(stripped)
for ((_, formatted) in lines) {
session.aliasManager?.processInput(bufferInfo, formatted, output)
}
for (command in output) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment