Purge local messages

master
M66B 2 months ago
parent 36246624be
commit aadcbaed8d

@ -116,6 +116,14 @@ public class FragmentDialogContactGroup extends FragmentDialogBase {
@Override @Override
protected void onExecuted(Bundle args, Cursor cursor) { protected void onExecuted(Bundle args, Cursor cursor) {
if (cursor == null)
EntityLog.log(getContext(), "MMM cursor is null");
else {
EntityLog.log(getContext(), "MMM cursor count=" + cursor.getCount());
for (int col = 0; col < cursor.getColumnCount(); col++)
EntityLog.log(getContext(), "MMM " + col + "=" + cursor.getColumnName(col));
}
SimpleCursorAdapter adapter = new SimpleCursorAdapter( SimpleCursorAdapter adapter = new SimpleCursorAdapter(
context, context,
R.layout.spinner_contact_group, R.layout.spinner_contact_group,

@ -11160,8 +11160,14 @@ public class FragmentMessages extends FragmentBase
if (message == null) if (message == null)
continue; continue;
if (message.uid != null || account.protocol == EntityAccount.TYPE_POP) if (account.protocol == EntityAccount.TYPE_POP)
db.message().setMessageUiHide(message.id, true); db.message().setMessageUiHide(message.id, true);
else {
if (message.uid == null)
db.message().deleteMessage(id);
else
db.message().setMessageUiHide(message.id, true);
}
} }
EntityOperation.queue(context, folder, EntityOperation.PURGE); EntityOperation.queue(context, folder, EntityOperation.PURGE);

Loading…
Cancel
Save