diff --git a/cmd/utils.go b/cmd/utils.go index bfa8e580bc3f931583bae48bd357fcb79b93e484..6a16bc0b4480aebf99c8584c73ea492e622ebab7 100644 --- a/cmd/utils.go +++ b/cmd/utils.go @@ -59,7 +59,7 @@ func runTestUI() { l1.Hear(receive.Message{ MessageType: 1, ID: cryptoE2e.MessageID{}, - Payload: []byte("My name is Sally. 1 abortion please!"), + Payload: []byte("Hello this is a test."), Sender: partnerID, RecipientID: myID, Timestamp: netTime.Now(), diff --git a/ui/chats.go b/ui/chats.go index e4ba2e766fb43e8aea00202ad54c0314068e743c..05e20c955cc4dff2792811bac4bfd8e6a908cf86 100644 --- a/ui/chats.go +++ b/ui/chats.go @@ -56,6 +56,9 @@ func (cs *Chats) Add(receivedMsgChan chan []byte, sendFn SendMessage, maxMessageLen: maxMessageLen, unread: true, } + + cs.updateFeed <- struct{}{} + go cs.UpdateChatList(cs.nextIndex) go cs.chats[cs.nextIndex].updateChatFeed(cs.updateFeed, cs.UpdateChatList) cs.nextIndex++ }