diff --git a/message/lib.php b/message/lib.php index 801ebdd111a85..1e2228a39ca8c 100644 --- a/message/lib.php +++ b/message/lib.php @@ -844,6 +844,11 @@ function core_message_standard_after_main_region_html() { // Enter to send. $entertosend = get_user_preferences('message_entertosend', false, $USER); + $notification = ''; + if (!get_user_preferences('core_message_migrate_data', false)) { + $notification = get_string('messagingdatahasnotbeenmigrated', 'message'); + } + return $renderer->render_from_template('core_message/message_drawer', [ 'contactrequestcount' => $requestcount, 'loggedinuser' => [ @@ -861,6 +866,9 @@ function core_message_standard_after_main_region_html() { 'settings' => [ 'privacy' => $choices, 'entertosend' => $entertosend + ], + 'overview' => [ + 'notification' => $notification ] ]); } diff --git a/message/templates/message_drawer_lazy_load_list.mustache b/message/templates/message_drawer_lazy_load_list.mustache index 2dc869052cc6f..e1add728e9c8e 100644 --- a/message/templates/message_drawer_lazy_load_list.mustache +++ b/message/templates/message_drawer_lazy_load_list.mustache @@ -40,10 +40,10 @@ data-user-id="{{loggedinuser.id}}" {{$rootattributes}}{{/rootattributes}} > + + {{$notification}}{{/notification}}