diff --git a/temba/contacts/models.py b/temba/contacts/models.py index 5b53f8920c2..a42f59e50d4 100644 --- a/temba/contacts/models.py +++ b/temba/contacts/models.py @@ -1057,6 +1057,11 @@ def bulk_modify(cls, user, contacts, mods: list[modifiers.Modifier]): logger.error(f"Contact update failed: {str(e)}", exc_info=True) raise e + # update the contacts modified_by field because it is not updated on the mailroom side + for contact in contacts: + contact.modified_by = user + Contact.objects.bulk_update(contacts, ["modified_by"]) + def modified(contact): return len(response.get(contact.id, {}).get("events", [])) > 0