Ignore:
Timestamp:
01/29/20 13:20:24 (4 years ago)
Author:
bnemhaus
Message:

Revised implementation of authenticated Expeditee mail. Motivated by bugs relating to messages not being marked as read and incorrect counting of new messages for users, the Expeditee mail system has been rewritten. The new code not only does not exhibit the previous bugs but is also better engineered. Whilst the MailBay is static (which is in line with the MessageBay), the Mail class is no longer static and must be initialised for each user as they log in.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gui/FrameUtils.java

    r1490 r1504  
    12861286
    12871287                        // check the link to the message/mail frame
    1288                         Item linkItem = DisplayController.isMailMode() ? MailBay.getMailLink() : MessageBay.getMessageLink();
    1289                         if (linkItem != null && linkItem.contains(new Point(x, y))) {
    1290                                 linkItem.setOverlayPermission(UserAppliedPermission.copy);
    1291                                 possibles.add(linkItem);
     1288                        Item[] linkItems = DisplayController.isMailMode() ? new Item[] { MailBay.getMailLink(), MailBay.getCheckMailAction() } : new Item[] { MessageBay.getMessageLink() };
     1289                        for (Item linkItem: linkItems) {
     1290                                if (linkItem != null && linkItem.contains(new Point(x, y))) {
     1291                                        linkItem.setOverlayPermission(UserAppliedPermission.copy);
     1292                                        possibles.add(linkItem);
     1293                                }
    12921294                        }
    12931295
Note: See TracChangeset for help on using the changeset viewer.