This files describes API changes in Totara Messages,
information provided here is intended especially for developers.

=== 15.0 ===

* tm_message_task_link() has been deprecated. Please use tm_message_task_accept() instead.

=== 14.0 ===

* Changed the structure of table 'message_metadata':
    * Added two new fields:
        * notificationid - which is referencing to the id column new table 'notifications'.
        * timeread - which is for finding out whether the message metadata record had been read by accordingly user.
    * The field 'messageid' and 'messagereadid' of table will no longer be populated by the plugin's APIs.
      However these fields are still be kept for the migration. The migration of removing the values of these columns
      will happen when the notification migration task is running.
    * Added new unique index for fields "notificationid" and "processorid".
    * For every different processor, the message metadata record will be created accordingly.
* Function "totara_message_eventdata()" is now requiring the third parameter to present, please update all calls.
* Added new second optional parameter to function "totara_message_dismiss_action()".
* Added new fourth optional parameter to function "totara_message_alert_popup()".
* Added new second optional parameter to function "totara_message_action_button()".
* Added new second optional parameter to function "tm_message_dismiss()".
* Added new third optional parameter to function "tm_message_task_accept()"
* Added new third optional parameter to function "tm_message_task_reject()"
* Changes in function "tm_message_mark_message_read()":
    * Added new fourth optional parameter.
    * Deprecated the third parameter of the function, please update all calls.

=== 13.0 ===

=== 12.31 ===
tm_message_set_default_message_preferences() has been deprecated

=== 12.0 ===

Removed deprecated method totara_message_accept_reject_action()
Deprecated the following report builder display functions and replaced with display classes
  * rb_source_totaramessages::rb_display_urgency_link(), please call totara_message\rb\display\message_urgency_link::display() instead.
  * rb_source_totaramessages::rb_display_msgtype_link(), please call totara_message\rb\display\message_type_link::display() instead.
  * rb_source_totaramessages::rb_display_msgcategory_text(), please call totara_message\rb\display\message_category_text::display() instead.
  * rb_source_totaramessages::rb_display_dismiss_link(), please call totara_message\rb\display\message_dismiss_link::display() instead.
  * rb_source_totaramessages::rb_display_message_checkbox(), please call totara_message\rb\display\message_checkbox::display() instead.
