mirror of
https://github.com/mattermost/mattermost.git
synced 2026-09-24 16:05:00 +08:00
Minor status updates (#6889)
This commit is contained in:
committed by
Saturnino Abril
parent
87e62e8823
commit
2bfd7be8d1
@@ -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()))
|
||||
}
|
||||
|
||||
@@ -74,6 +74,9 @@ export function loadStatusesForChannelAndSidebar() {
|
||||
}
|
||||
}
|
||||
|
||||
const {currentUserId} = getState().entities.users;
|
||||
statusesToLoad[currentUserId] = true;
|
||||
|
||||
loadStatusesByIds(Object.keys(statusesToLoad));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user