diff --git a/api4/post.go b/api4/post.go index 886b64daab..3d0c681d10 100644 --- a/api4/post.go +++ b/api4/post.go @@ -55,6 +55,8 @@ func createPost(c *Context, w http.ResponseWriter, r *http.Request) { return } + app.SetStatusOnline(c.Session.UserId, c.Session.Id, false) + w.WriteHeader(http.StatusCreated) w.Write([]byte(rp.ToJson())) } diff --git a/webapp/actions/status_actions.jsx b/webapp/actions/status_actions.jsx index 066a89254d..cbad8e4c08 100644 --- a/webapp/actions/status_actions.jsx +++ b/webapp/actions/status_actions.jsx @@ -74,6 +74,9 @@ export function loadStatusesForChannelAndSidebar() { } } + const {currentUserId} = getState().entities.users; + statusesToLoad[currentUserId] = true; + loadStatusesByIds(Object.keys(statusesToLoad)); }