Skip to content

Commit a6d7954

Browse files
committed
don't just print help when no messages are available
1 parent 96e9d75 commit a6d7954

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

main.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"gitlab.com/tslocum/cbind"
1717
)
1818

19-
var VERSION string = "v1.0.0"
19+
var VERSION string = "v1.0.1"
2020

2121
var sndTxt string = ""
2222
var currentReceiver messages.Chat = messages.Chat{}
@@ -627,7 +627,11 @@ func (u UiHandler) NewScreen(msgs []messages.Message) {
627627
textView.SetText(screen)
628628
curRegions = msgs
629629
if screen == "" {
630-
PrintHelp()
630+
if currentReceiver.Id == "" {
631+
PrintHelp()
632+
} else {
633+
PrintText("[::d] ~~~ no messages, press " + config.Config.Keymap.CommandBacklog + " to load backlog if available ~~~[::-]")
634+
}
631635
}
632636
})
633637
}

0 commit comments

Comments
 (0)