Use endpoint for chat history instead of websocket (#67)

* Change placeholder when chat is disabled

* Use the /chat endpoint for bulk chat history population instead of websocket. For #47

* Force LiveUI/seek bar during live to show. Closes #11.

* Change pulling chat history into app.js

* Force new messages to have visability = true
This commit is contained in:
Gabe Kangas
2020-07-18 17:27:04 -07:00
committed by GitHub
parent a266633a9a
commit 2855027f22
4 changed files with 28 additions and 13 deletions

View File

@@ -111,6 +111,7 @@ func (c *Client) listenRead() {
msg.ID = id
msg.MessageType = "CHAT"
msg.Timestamp = time.Now()
msg.Visible = true
if err := websocket.JSON.Receive(c.ws, &msg); err == io.EOF {
c.doneCh <- true