MDL-54708 message: notification popover respects message preferences
[moodle.git] / message / amd / src / notification_repository.js
index eb7f33c..0cf97ad 100644 (file)
@@ -40,7 +40,7 @@ define(['core/ajax', 'core/notification'], function(ajax, notification) {
         }
 
         var request = {
-            methodname: 'core_message_get_notifications',
+            methodname: 'core_message_get_popup_notifications',
             args: args
         };
 
@@ -59,7 +59,7 @@ define(['core/ajax', 'core/notification'], function(ajax, notification) {
      */
     var countUnread = function(args) {
         var request = {
-            methodname: 'core_message_get_unread_notification_count',
+            methodname: 'core_message_get_unread_popup_notification_count',
             args: args
         };