mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
Exclude private messages when counting unread group messages.
This commit is contained in:
@@ -2183,6 +2183,7 @@ abstract class JdbcDatabase implements Database<Connection> {
|
||||
String sql = "SELECT groupId, COUNT(*)"
|
||||
+ " FROM messages AS m"
|
||||
+ " WHERE read = FALSE"
|
||||
+ " AND groupId IS NOT NULL"
|
||||
+ " GROUP BY groupId";
|
||||
ps = txn.prepareStatement(sql);
|
||||
rs = ps.executeQuery();
|
||||
|
||||
Reference in New Issue
Block a user