Changeset c6cf17


Ignore:
Timestamp:
Oct 17, 2014, 4:06:27 PM (5 years ago)
Author:
rene <rene@…>
Branches:
ng_0.9
Children:
45ce33
Parents:
13df6d
Message:

in reply-cases we have to wait till we get NotifyComposeBodyReady? before reading the recipients

File:
1 edited

Legend:

Unmodified
Added
Removed
  • content/v_identity.js

    r13df6d rc6cf17  
    3434
    3535var main = {
    36     _window_first_use : true,
    37    
    3836    headerParser : Components.classes["@mozilla.org/messenger/headerparser;1"]
    3937                .getService(Components.interfaces.nsIMsgHeaderParser),
     
    7068        NotifyComposeBodyReady: function() {
    7169            Log.debug("NotifyComposeBodyReady");
    72             // only call initSystemStage2 if window is not reopened
    73             if (main._window_first_use) {
    74                 main._window_first_use = false;
    75                 main.initSystemStage2();
    76             }
     70            main.initSystemStage2();
    7771        },
    7872        NotifyComposeFieldsReady: function() {
     
    307301        vI.vIprefs.dropLocalChanges();
    308302
    309         main.initSystemStage2();
     303        // NotifyComposeBodyReady is only triggered in reply-cases
     304        // so activate stage2 in reply-cases trough StateListener
     305        // in other cases directly
     306        var msgComposeType = Components.interfaces.nsIMsgCompType;
     307        switch (gMsgCompose.type) {
     308            case msgComposeType.New:
     309            case msgComposeType.NewsPost:
     310            case msgComposeType.MailToUrl:
     311            case msgComposeType.Draft:
     312            case msgComposeType.Template:
     313            case msgComposeType.ForwardAsAttachment:
     314            case msgComposeType.ForwardInline:
     315                main.initSystemStage2();
     316//             case msgComposeType.Reply:
     317//             case msgComposeType.ReplyAll:
     318//             case msgComposeType.ReplyToGroup:
     319//             case msgComposeType.ReplyToSender:
     320//             case msgComposeType.ReplyToSenderAndGroup:
     321//             case msgComposeType.ReplyWithTemplate:
     322//             case msgComposeType.ReplyToList:
     323//                 main.initSystemStage2() triggered trough NotifyComposeBodyReady;
     324        }
    310325        Log.debug("reopen done.")
    311326    },
Note: See TracChangeset for help on using the changeset viewer.