Fixed incorrect online status

User objects were created with the status ONLINE even if the actual
status in the database was a different one. This issue has been fixed.
This commit is contained in:
Kai S. K. Engelbart 2020-02-09 16:01:05 +01:00
parent e73ad7b871
commit 8d4de87dbb

View File

@ -64,7 +64,7 @@ public class User {
* @return a database {@link User} converted into an {@link envoy.data.User}
* @since Envoy Server Standalone v0.1-alpha
*/
public envoy.data.User toCommonUser() { return new envoy.data.User(id, name); }
public envoy.data.User toCommonUser() { return new envoy.data.User(id, name, status); }
/**
* @return the id of a {link envoy.data.User}