Commit 269ea760 authored by Dave Cridland's avatar Dave Cridland Committed by GitHub

Merge pull request #675 from akrherz/of1223

OF-1223 sort load of ofOffline by date
parents 7b4a6c0a 973179c3
......@@ -70,7 +70,7 @@ public class OfflineMessageStore extends BasicModule implements UserEventListene
"INSERT INTO ofOffline (username, messageID, creationDate, messageSize, stanza) " +
"VALUES (?, ?, ?, ?, ?)";
private static final String LOAD_OFFLINE =
"SELECT stanza, creationDate FROM ofOffline WHERE username=?";
"SELECT stanza, creationDate FROM ofOffline WHERE username=? ORDER BY creationDate ASC";
private static final String LOAD_OFFLINE_MESSAGE =
"SELECT stanza FROM ofOffline WHERE username=? AND creationDate=?";
private static final String SELECT_SIZE_OFFLINE =
......@@ -526,4 +526,4 @@ public class OfflineMessageStore extends BasicModule implements UserEventListene
}
return true;
}
}
\ No newline at end of file
}
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