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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user