Commit 1f68e1bc authored by PGoski's avatar PGoski

increment messageId

parent 09533102
......@@ -986,9 +986,12 @@ public class ConversationManager implements Startable, ComponentEventListener{
pstmt = con.prepareStatement(INSERT_MESSAGE);
ArchivedMessage message;
int msgCount = getArchivedMessageCount();
int count = 0;
while ((message = messageQueue.poll()) != null) {
pstmt.setInt(1, getArchivedMessageCount());
pstmt.setInt(1, ++msgCount);
pstmt.setLong(2, message.getConversationID());
pstmt.setString(3, message.getFromJID().toBareJID());
pstmt.setString(4, message.getFromJID().getResource());
......
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