Minor status updates (#6889)

This commit is contained in:
Joram Wilander
2017-07-11 02:49:42 +08:00
committed by Saturnino Abril
parent 87e62e8823
commit 2bfd7be8d1
2 changed files with 5 additions and 0 deletions
+2
View File
@@ -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()))
}
+3
View File
@@ -74,6 +74,9 @@ export function loadStatusesForChannelAndSidebar() {
}
}
const {currentUserId} = getState().entities.users;
statusesToLoad[currentUserId] = true;
loadStatusesByIds(Object.keys(statusesToLoad));
}