6
1
mirror of https://git.mills.io/saltyim/saltyim.git synced 2024-06-20 13:58:22 +00:00

Chat formatting (#16)

Changed chat format to have the text on a separate line instead of inline with datetime and user.

Co-authored-by: Phil S <ullarah@noreply@mills.io>
Reviewed-on: https://git.mills.io/prologic/saltyim/pulls/16
Co-authored-by: Phil S. <ullarah@noreply@mills.io>
Co-committed-by: Phil S. <ullarah@noreply@mills.io>
This commit is contained in:
Phil S 2022-03-20 05:08:02 +00:00 committed by James Mills
parent 5baf355c31
commit 93589b15b0

@ -102,7 +102,7 @@ func (cc *chatClient) updateChatBox(inCh <-chan string, app *tview.Application,
cc.mu.RLock()
app.QueueUpdateDraw(func() {
fmt.Fprintf(chatBox,
"[#%s]%s [#%x]%-30s [#%s]%s\n",
"[#%s]%s [#%x]%s\n[#%s]%s\n\n",
cc.palette["date"],
s.Timestamp.DateTime().Local().Format(dateTimeFormat),
getUserColor(s.User.String()).Hex(),