Fix JS error when receiving reply during channel switch (#5582)
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
2e911b77c3
Коммит
e739a91c94
@@ -772,6 +772,10 @@ func autocompleteChannels(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
func viewChannel(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
view := model.ChannelViewFromJson(r.Body)
|
||||
if view == nil {
|
||||
c.SetInvalidParam("viewChannel", "channel_view")
|
||||
return
|
||||
}
|
||||
|
||||
if err := app.ViewChannel(view, c.Session.UserId, !c.Session.IsMobileApp()); err != nil {
|
||||
c.Err = err
|
||||
|
||||
Ссылка в новой задаче
Block a user