Skip selecting messages in read-only folders

This commit is contained in:
M66B 2019-11-06 12:34:02 +01:00
parent b5d9ec700c
commit 0ddec7ed46
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ public class ViewModelMessages extends ViewModel {
int count = ds.countItems();
for (int i = 0; i < count; i += 100)
for (TupleMessageEx message : ds.loadRange(i, Math.min(100, count - i)))
if (message.uid != null)
if (message.uid != null && !message.folderReadOnly)
ids.add(message.id);
Log.i("Loaded messages #" + ids.size());