MDL-63466 core_message: Add conversation support to get_messages
authorSara Arjona <sara@moodle.com>
Tue, 23 Oct 2018 11:18:49 +0000 (13:18 +0200)
committerJake Dallimore <jake@moodle.com>
Wed, 24 Oct 2018 01:39:05 +0000 (09:39 +0800)
commitfb04293bb1df2fdd3d93494b29c0151fe3937899
tree9fa1b6773447721e430d5d47e86b0e13f5969c06
parentd89d0d659333e8f7323d7a1e71131cc2849b0677
MDL-63466 core_message: Add conversation support to get_messages

- The get_conversation_messages has been added to the API and the WS
with the conversation identifier (convid) instead of the userto,
to let get conversation messages and the members involved.
- The cache has been also reviewed, to use the convid instead of the
[userfrom, userto] keys.
- The get_most_recent_conversation_messages has been added to the API
to update the cache when needed.
lang/en/cache.php
lib/db/caches.php
lib/db/services.php
lib/messagelib.php
message/classes/api.php
message/classes/helper.php
message/classes/time_last_message_between_users.php
message/externallib.php
message/tests/api_test.php
message/tests/externallib_test.php
version.php