Fixed grammar
This commit is contained in:
parent
b8f05578fe
commit
f0a72d5851
@ -253,7 +253,7 @@ public class LocalDB {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Updating UserStatus of all Users in LocalDB
|
// Updating UserStatus of all users in LocalDB
|
||||||
for (int j = 0; j < returnSync.getUsers().size(); j++) {
|
for (int j = 0; j < returnSync.getUsers().size(); j++) {
|
||||||
for (int k = 0; k < getChats().size(); k++) {
|
for (int k = 0; k < getChats().size(); k++) {
|
||||||
if (getChats().get(k).getRecipient().getID() == returnSync.getUsers().get(j).getID()) {
|
if (getChats().get(k).getRecipient().getID() == returnSync.getUsers().get(j).getID()) {
|
||||||
@ -278,7 +278,7 @@ public class LocalDB {
|
|||||||
public void addMessageToSync(Message message) { sync.getMessages().add(message); }
|
public void addMessageToSync(Message message) { sync.getMessages().add(message); }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds a user to the "sync" Sync object.
|
* Adds a user to the {@code sync} {@link Sync} object.
|
||||||
*
|
*
|
||||||
* @param user
|
* @param user
|
||||||
* @since Envoy v0.1-alpha
|
* @since Envoy v0.1-alpha
|
||||||
@ -286,7 +286,7 @@ public class LocalDB {
|
|||||||
public void addUserToSync(User user) { sync.getUsers().add(user); }
|
public void addUserToSync(User user) { sync.getUsers().add(user); }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds the unread Messages returned from the server in the latest sync to the
|
* Adds the unread messages returned from the server in the latest sync to the
|
||||||
* right chats in the LocalDB.
|
* right chats in the LocalDB.
|
||||||
*
|
*
|
||||||
* @param localDB
|
* @param localDB
|
||||||
@ -305,7 +305,7 @@ public class LocalDB {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets all Messages with state SENT from the LocalDB and adds them to the
|
* Gets all messages with state SENT from the LocalDB and adds them to the
|
||||||
* "sync" Sync object.
|
* "sync" Sync object.
|
||||||
*
|
*
|
||||||
* @param localDB
|
* @param localDB
|
||||||
@ -322,9 +322,9 @@ public class LocalDB {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Changes all Messages with State RECEIVED of a specific chat to State READ.
|
* Changes all messages with State RECEIVED of a specific chat to State READ.
|
||||||
* <br>
|
* <br>
|
||||||
* Adds these Messages to the "readMessages" Sync object.
|
* Adds these Messages to the {@code readMessages} {@link Sync} object.
|
||||||
*
|
*
|
||||||
* @param currentChat
|
* @param currentChat
|
||||||
* @since Envoy v0.1-alpha
|
* @since Envoy v0.1-alpha
|
||||||
@ -341,7 +341,7 @@ public class LocalDB {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds a Message with State WAITING to a specific chat in the LocalDB.
|
* Adds a message with State WAITING to a specific chat in the LocalDB.
|
||||||
*
|
*
|
||||||
* @param message
|
* @param message
|
||||||
* @param currentChat
|
* @param currentChat
|
||||||
@ -350,7 +350,7 @@ public class LocalDB {
|
|||||||
public void addWaitingMessageToLocalDB(Message message, Chat currentChat) { currentChat.appendMessage(message); }
|
public void addWaitingMessageToLocalDB(Message message, Chat currentChat) { currentChat.appendMessage(message); }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds all Messages with State WAITING from the LocalDB to the Sync.
|
* Adds all messages with State WAITING from the {@link LocalDB} to the Sync.
|
||||||
*
|
*
|
||||||
* @param localDB
|
* @param localDB
|
||||||
* @since Envoy v0.1-alpha
|
* @since Envoy v0.1-alpha
|
||||||
@ -369,7 +369,7 @@ public class LocalDB {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clears the "unreadMessagesSync" Sync object.
|
* Clears the {@code unreadMessagesSync} {@link Sync} object.
|
||||||
*
|
*
|
||||||
* @since Envoy v0.1-alpha
|
* @since Envoy v0.1-alpha
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user