MDL-64715 message: add support for self conversations
authorSara Arjona <sara@moodle.com>
Wed, 6 Mar 2019 20:26:29 +0000 (21:26 +0100)
committerSara Arjona <sara@moodle.com>
Mon, 15 Apr 2019 18:17:54 +0000 (20:17 +0200)
commit734b198fd36c273f2412bb47ffbc7c1c75079391
treeacde5f906ed4b26c5c538508c5ebbd5f0396380f
parentfcd7f0f982180d048d8beaf1aa27f886876c0564
MDL-64715 message: add support for self conversations

Added new MESSAGE_CONVERSATION_TYPE_SELF type for self-conversations
and upgraded legacy self-conversations to the new type, removing
repeated members in the message_conversation_members table.
Besides, from now, a self-conversation will be created by default for
all the existing users.

All the self-conversations have been also starred and a default message
will be displayed always to explain how to use them.
33 files changed:
lang/en/message.php
lib/classes/message/manager.php
lib/db/services.php
lib/db/upgrade.php
lib/messagelib.php
lib/tests/messagelib_test.php
lib/upgrade.txt
message/amd/build/message_drawer_view_conversation.min.js
message/amd/build/message_drawer_view_conversation_constants.min.js
message/amd/build/message_drawer_view_conversation_patcher.min.js
message/amd/build/message_drawer_view_conversation_renderer.min.js
message/amd/build/message_drawer_view_overview.min.js
message/amd/build/message_drawer_view_overview_section.min.js
message/amd/build/message_repository.min.js
message/amd/src/message_drawer_view_conversation.js
message/amd/src/message_drawer_view_conversation_constants.js
message/amd/src/message_drawer_view_conversation_patcher.js
message/amd/src/message_drawer_view_conversation_renderer.js
message/amd/src/message_drawer_view_overview.js
message/amd/src/message_drawer_view_overview_section.js
message/amd/src/message_repository.js
message/classes/api.php
message/classes/privacy/provider.php
message/classes/task/migrate_message_data.php
message/externallib.php
message/templates/message_drawer_view_conversation_body.mustache
message/templates/message_drawer_view_conversation_header_content_type_self.mustache [new file with mode: 0644]
message/tests/api_test.php
message/tests/externallib_test.php
message/tests/messagelib_test.php
message/upgrade.txt
user/lib.php
version.php