6
1
mirror of https://git.mills.io/saltyim/saltyim.git synced 2024-06-27 09:18:22 +00:00

Add title back that @xuu added

This commit is contained in:
James Mills 2022-03-20 11:40:32 +10:00
parent 1bdd463e2c
commit 1702b0e36d

@ -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()