Skip to content

Commit

Permalink
#369 and #370 Clear Chat Room History
Browse files Browse the repository at this point in the history
Getting the room JID data from the correct resultset column in the loadFromDb method.
  • Loading branch information
“Huy committed Dec 9, 2024
1 parent 626b152 commit 3dddfbc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ private static Conversation loadFromDb(final long conversationID) throws NotFoun
throw new NotFoundException("Conversation not found: " + conversationID);
}
final int roomID = rs.getInt(1);
final JID room = rs.getString(2) == null ? null : new JID(rs.getString(1));
final JID room = rs.getString(2) == null ? null : new JID(rs.getString(2));
final boolean external = rs.getInt(3) == 1;
final Date startDate = new Date(rs.getLong(4));
final Date lastActivity = new Date(rs.getLong(5));
Expand Down

0 comments on commit 3dddfbc

Please sign in to comment.