MM-14532 Send "clear" notification to every other session (#10459)

Этот коммит содержится в:
Elias Nahum
2019-03-18 11:34:34 -03:00
коммит произвёл Jesús Espino
родитель 078e678a34
Коммит 4cc75fc062
13 изменённых файлов: 51 добавлений и 48 удалений

Просмотреть файл

@@ -975,7 +975,7 @@ func viewChannel(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
times, err := c.App.ViewChannel(view, c.Params.UserId, !c.App.Session.IsMobileApp())
times, err := c.App.ViewChannel(view, c.Params.UserId, c.App.Session.Id)
if err != nil {
c.Err = err
return
@@ -1137,7 +1137,7 @@ func addChannelMember(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
cm, err := c.App.AddChannelMember(member.UserId, channel, c.App.Session.UserId, postRootId, !c.App.Session.IsMobileApp())
cm, err := c.App.AddChannelMember(member.UserId, channel, c.App.Session.UserId, postRootId, c.App.Session.Id)
if err != nil {
c.Err = err
return