Skip to content
Browse files

SAKIII-5620 Removing request for unread message count on /me page

Squashed commit of the following:

commit c46c2616c53a64893df222daded5b23408bc3351
Merge: 1c5d98e 2a2f56d
Author: Christian Vuerings <vueringschristian@gmail.com>
Date:   Thu May 24 18:10:09 2012 -0700

    Merge remote-tracking branch 'apex13/SAKIII-5620' into apex13-SAKIII-5620

commit 2a2f56d
Author: Dean Angerer <DeanAngerer@Gmail.com>
Date:   Wed May 23 12:59:09 2012 -0400

    SAKIII-5620 Slight refactor.
    https://jira.sakaiproject.org/browse/SAKIII-5620

commit 4ed20d9
Author: Dean Angerer <DeanAngerer@Gmail.com>
Date:   Wed May 23 12:50:38 2012 -0400

    SAKIII-5620 Using unread count from me feed instead of issuing additional request.
    https://jira.sakaiproject.org/browse/SAKIII-5620

commit c2f5f22
Author: Dean Angerer <DeanAngerer@Gmail.com>
Date:   Wed May 23 12:15:15 2012 -0400

    SAKIII-5620 Removing request for unread message count on /me page
    https://jira.sakaiproject.org/browse/SAKIII-5620
  • Loading branch information...
1 parent 1c5d98e commit 96d356c8c5e40a792ac3dc86799516ae91523991 @apex13 apex13 committed with christianvuerings
Showing with 2 additions and 6 deletions.
  1. +2 −6 dev/javascript/user.js
View
8 dev/javascript/user.js
@@ -234,13 +234,9 @@ require(["jquery","sakai/sakai.api.core"], function($, sakai) {
privurl = '/~' + sakai.api.Util.safeURL(userid) + '/private/privspace';
puburl = '/~' + sakai.api.Util.safeURL(userid) + '/public/pubspace';
if (isMe) {
- sakai.api.Communication.getUnreadMessagesCountOverview('inbox', function(success, counts) {
- messageCounts = counts;
- continueLoadSpaceData(userid);
- });
- } else {
- continueLoadSpaceData(userid);
+ messageCounts = sakai.data.me.messages.unread;
}
+ continueLoadSpaceData(userid);
};
var addCounts = function() {

0 comments on commit 96d356c

Please sign in to comment.
Something went wrong with that request. Please try again.