diff --git a/lib/db/services.php b/lib/db/services.php index e21b9574737..e0b5596c968 100644 --- a/lib/db/services.php +++ b/lib/db/services.php @@ -1086,6 +1086,7 @@ $functions = array( 'description' => 'Retrieve a list of conversations for a user', 'type' => 'read', 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE), + 'ajax' => true ), 'core_message_get_conversation' => array( 'classname' => 'core_message_external', diff --git a/message/externallib.php b/message/externallib.php index a5ec428edf7..07d01d58005 100644 --- a/message/externallib.php +++ b/message/externallib.php @@ -1609,7 +1609,7 @@ class core_message_external extends external_api { return new external_single_structure( [ 'conversations' => new external_multiple_structure( - self::get_conversation_structure() + self::get_conversation_structure(true) ) ] );