mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
MM-21898 - Part 1: Generate and use an interface instead of *A… (#13840)
* Generate and use an interface instead of *App
This commit is contained in:
@@ -30,9 +30,9 @@ func connectWebSocket(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
wc := c.App.NewWebConn(ws, c.App.Session, c.App.T, "")
|
||||
wc := c.App.NewWebConn(ws, *c.App.Session(), c.App.T, "")
|
||||
|
||||
if len(c.App.Session.UserId) > 0 {
|
||||
if len(c.App.Session().UserId) > 0 {
|
||||
c.App.HubRegister(wc)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user