Empty trash: skip local messages

pull/156/head
M66B 6 years ago
parent 75be113b33
commit cc87d33cd7

@ -617,7 +617,8 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
List<Long> ids = db.message().getMessageByFolder(folder);
for (Long id : ids) {
EntityMessage message = db.message().getMessage(id);
EntityOperation.queue(context, message, EntityOperation.DELETE);
if (message.msgid != null || message.uid != null)
EntityOperation.queue(context, message, EntityOperation.DELETE);
}
db.setTransactionSuccessful();

Loading…
Cancel
Save