Fixed select all of not synced messages

This commit is contained in:
M66B 2019-10-13 11:39:31 +02:00
parent 10ee8c7eed
commit 58729f6285
1 changed files with 2 additions and 1 deletions

View File

@ -277,7 +277,8 @@ 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)))
ids.add(message.id);
if (message.uid != null)
ids.add(message.id);
Log.i("Loaded messages #" + ids.size());
return ids;