mirror of
https://github.com/moodle/moodle.git
synced 2025-03-24 17:40:26 +01:00
Merge branch 'MDL-65572-master' of git://github.com/damyon/moodle
This commit is contained in:
commit
2c0ac767c6
@ -933,6 +933,16 @@ class manager {
|
||||
if ($generateevent) {
|
||||
$event->trigger();
|
||||
}
|
||||
|
||||
// Queue migrating the messaging data, if we need to.
|
||||
if (!get_user_preferences('core_message_migrate_data', false, $userid)) {
|
||||
// Check if there are any legacy messages to migrate.
|
||||
if (\core_message\helper::legacy_messages_exist($userid)) {
|
||||
\core_message\task\migrate_message_data::queue_task($userid);
|
||||
} else {
|
||||
set_user_preference('core_message_migrate_data', true, $userid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user