avoid ANR in MessageSelectorFragment.handleDeleteMessages

This commit is contained in:
adbenitez 2025-03-30 15:51:16 +02:00
parent 3518f3d213
commit c7bffb85fd

View file

@ -92,7 +92,7 @@ public abstract class MessageSelectorFragment
if(canDeleteForAll) {
builder.setNegativeButton(R.string.delete_for_everyone, (d, which) -> {
dcContext.sendDeleteRequest(messageIds);
Util.runOnAnyBackgroundThread(() -> dcContext.sendDeleteRequest(messageIds));
if (actionMode != null) actionMode.finish();
});
AlertDialog dialog = builder.show();