Skip to content
Snippets Groups Projects
Commit 04362a35 authored by Anton Danilov's avatar Anton Danilov Committed by Anton Danilov
Browse files

#668 Fixed recovering deleted account that was synchronized again

parent 8ed04e06
Branches feature-test-profile
Tags
No related merge requests found
......@@ -265,7 +265,13 @@ public class UserDAO {
dbUser = createUser(user.getName(), user.getAge(), user.getGender(), user.getAvatar(), user.getSignature(), user.getUuid());
Log.debug(UserDAO.class, "Creating new user with id: " + dbUser.getId());
} else {
Log.debug(UserDAO.class, "User already exists in tablexia with id: " + dbUser.getId());
if(dbUser.isDeleted()) {
Log.debug(UserDAO.class, "Recovering user that already exists with id: " + dbUser.getId());
dbUser.setDeleted(false);
updateUser(dbUser);
} else {
Log.debug(UserDAO.class, "User already exists in tablexia with id: " + dbUser.getId());
}
}
// fill in tablexia DB id to originally received user
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment