diff --git a/client.go b/client.go index e087fdd..8cec5f5 100644 --- a/client.go +++ b/client.go @@ -8,9 +8,6 @@ import ( "sync" "time" - _ "image/jpeg" - _ "image/png" - "github.com/keys-pub/keys" "github.com/rivo/tview" "go.mills.io/salty" @@ -117,9 +114,14 @@ func (cc *chatClient) updateChatBox(inCh <-chan string, app *tview.Application, func (cc *chatClient) SetScreen(inCh <-chan string, outCh chan<- string) { app := tview.NewApplication() + title := fmt.Sprintf( + "Chatting as %s via %s/%s with %s via %s", + cc.me, cc.uri, cc.inbox, cc.user, cc.config.Endpoint, + ) + // Generate UI components. cc.mu.RLock() - chatBox := NewChatBox(cc.palette, cc.user) + chatBox := NewChatBox(cc.palette, title) inputField := NewChatInput(cc.palette, cc.newMessageHandler(outCh)) cc.mu.RUnlock()