cli: Only print 'new message' for inbound messages

This commit is contained in:
John Brooks 2017-08-11 14:01:45 -06:00
parent 03b6205850
commit 2e8b9f2828
1 changed files with 3 additions and 0 deletions

View File

@ -240,6 +240,9 @@ func (c *Conversation) validateMessage(msg *ricochet.Message) error {
func (c *Conversation) printMessage(msg *ricochet.Message) {
if !c.active {
if msg.Sender.IsSelf {
return
}
messages := fmt.Sprintf("%d new message", c.numUnread)
if c.numUnread > 1 {
messages += "s"