MDL-63692 core_message: Fix the context for favourite conversations
authorSara Arjona <sara@moodle.com>
Mon, 19 Nov 2018 18:21:38 +0000 (19:21 +0100)
committerSara Arjona <sara@moodle.com>
Mon, 19 Nov 2018 21:08:28 +0000 (22:08 +0100)
commit6b036d04cf7fdfd996e22fade02f4e269d27e70e
treeae0c54d5b2a31aacb37ac7ca3a932b68261838fa
parentc752cce7dd1c655a5328339bbab520807c6f1e5d
MDL-63692 core_message: Fix the context for favourite conversations

The converation favourites were previously set in the system context
which is not right, as they should be stored:
- In the conversation context when defined.
- In the user context, when contextid is null (that means is an
individual conversation).
lib/db/upgrade.php
message/classes/api.php
version.php