Restore unread baseline and read tracking

This commit is contained in:
AidarKC
2026-08-21 14:24:46 +04:00
parent 745a0e39d7
commit b9b77c66ce
4 changed files with 215 additions and 31 deletions
@@ -161,7 +161,7 @@ final class ChannelsReadSupport {
AND setting_key = ?
LIMIT 1
""";
long lastSeen = 0;
long lastSeen = messagesCount;
try (PreparedStatement ps = c.prepareStatement(sql)) {
ps.setString(1, viewerLogin);
ps.setInt(2, 1);