Fix unread channel counts and badges

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