|
|
@ -277,7 +277,8 @@ public class ViewModelMessages extends ViewModel {
|
|
|
|
int count = ds.countItems();
|
|
|
|
int count = ds.countItems();
|
|
|
|
for (int i = 0; i < count; i += 100)
|
|
|
|
for (int i = 0; i < count; i += 100)
|
|
|
|
for (TupleMessageEx message : ds.loadRange(i, Math.min(100, count - i)))
|
|
|
|
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());
|
|
|
|
Log.i("Loaded messages #" + ids.size());
|
|
|
|
return ids;
|
|
|
|
return ids;
|
|
|
|