Debug info: hidden messages

This commit is contained in:
M66B 2023-02-24 17:12:13 +01:00
parent 8a2a759979
commit 2bd3efa149
2 changed files with 7 additions and 1 deletions

View File

@ -490,6 +490,11 @@ public interface DaoMessage {
" AND NOT ui_seen")
int countUnseen(long folder);
@Query("SELECT COUNT(*) FROM message" +
" WHERE folder = :folder" +
" AND ui_hide")
int countHidden(long folder);
@Query("SELECT COUNT(*)" +
" FROM message" +
" WHERE folder = :folder" +

View File

@ -2434,6 +2434,7 @@ public class Log {
for (TupleFolderEx folder : folders)
if (folder.synchronize) {
int unseen = db.message().countUnseen(folder.id);
int hidden = db.message().countHidden(folder.id);
int notifying = db.message().countNotifying(folder.id);
size += write(os, "- " + folder.name + " " +
folder.type + (folder.inherited_type == null ? "" : "/" + folder.inherited_type) +
@ -2443,7 +2444,7 @@ public class Log {
" days=" + folder.sync_days + "/" + folder.keep_days +
" msgs=" + folder.content + "/" + folder.messages + "/" + folder.total +
" ops=" + db.operation().getOperationCount(folder.id, null) +
" unseen=" + unseen + " notifying=" + notifying +
" unseen=" + unseen + " hidden=" + hidden + " notifying=" + notifying +
" " + folder.state +
(folder.last_sync == null ? "" : " " + dtf.format(folder.last_sync)) +
"\r\n");