X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/e75ba43a4e6032b94bf3a3fedf9f557f2c4969e4..5c34f8752938764668d829fb284626b9c62c5475:/hotline/client.go diff --git a/hotline/client.go b/hotline/client.go index e676e65..d656db5 100644 --- a/hotline/client.go +++ b/hotline/client.go @@ -204,7 +204,7 @@ func handleTranServerMsg(c *Client, t *Transaction) (res []Transaction, err erro time := time.Now().Format(time.RFC850) msg := strings.ReplaceAll(string(t.GetField(fieldData).Data), "\r", "\n") - msg += "\n\nAt " + time + msg += "\n\nAt " + time title := fmt.Sprintf("| Private Message From: %s |", t.GetField(fieldUserName).Data) msgBox := tview.NewTextView().SetScrollable(true) @@ -226,8 +226,7 @@ func handleTranServerMsg(c *Client, t *Transaction) (res []Transaction, err erro AddItem(nil, 0, 1, false), 0, 2, true). AddItem(nil, 0, 1, false) - - c.UI.Pages.AddPage("serverMsgModal" + time, centeredFlex, true, true) + c.UI.Pages.AddPage("serverMsgModal"+time, centeredFlex, true, true) c.UI.App.Draw() // TODO: errModal doesn't render without this. wtf? return res, err