Commit 7c355eeb authored by Thomas Lecluse's avatar Thomas Lecluse
Browse files

Merge branch 'fix/addNewUser/userInListTwoTimes' into 'int/v2'

Fix Authenticated User appears 2 times in User List

See merge request !52
parents 5bdbbe14 04facfd0
......@@ -32,8 +32,10 @@ public class ComToDataClientImpl implements IComToData {
@Override
public void addNewUser(UserLight user) {
dataCoreClient.getListConnectedUsers().add(user);
dataCoreClient.getDataToMain().updateUserList(user);
if(!dataCoreClient.getLocalUserLight().getId().equals(user.getId()) ) {
dataCoreClient.getListConnectedUsers().add(user);
dataCoreClient.getDataToMain().updateUserList(user);
}
}
@Override
......
Markdown is supported
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