Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Briar Desktop
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
briar
Briar Desktop
Commits
0b0e5759
Verified
Commit
0b0e5759
authored
Nov 13, 2021
by
Mikolai Gütschow
Browse files
Options
Downloads
Patches
Plain Diff
don't clear blank messages that are not send
parent
12d5c413
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!43
Don't clear input of blank messages that are not send
Pipeline
#8155
passed
Nov 15, 2021
Stage: test
Changes
1
Pipelines
3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/kotlin/org/briarproject/briar/desktop/conversation/ConversationViewModel.kt
+2
-1
2 additions, 1 deletion
...oject/briar/desktop/conversation/ConversationViewModel.kt
with
2 additions
and
1 deletion
src/main/kotlin/org/briarproject/briar/desktop/conversation/ConversationViewModel.kt
+
2
−
1
View file @
0b0e5759
...
@@ -83,11 +83,12 @@ constructor(
...
@@ -83,11 +83,12 @@ constructor(
fun
sendMessage
()
{
fun
sendMessage
()
{
try
{
try
{
val
text
=
_newMessage
.
value
val
text
=
_newMessage
.
value
_newMessage
.
value
=
""
// don't send empty or blank messages
// don't send empty or blank messages
if
(
text
.
isBlank
())
return
if
(
text
.
isBlank
())
return
_newMessage
.
value
=
""
val
start
=
LogUtils
.
now
()
val
start
=
LogUtils
.
now
()
val
m
=
createMessage
(
text
)
val
m
=
createMessage
(
text
)
messagingManager
.
addLocalMessage
(
m
)
messagingManager
.
addLocalMessage
(
m
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment