--- a/calendar/base/modules/utils/calItipUtils.jsm
+++ b/calendar/base/modules/utils/calItipUtils.jsm
@@ -528,17 +528,17 @@ var calitip = {
identity = defaultAccount.defaultIdentity;
}
if (!identity) {
// If there isn't a default identity (i.e Local Folders is your
// default identity), then go ahead and use the first available
// identity.
let allIdentities = actMgr.allIdentities;
if (allIdentities.length > 0) {
- identity = allIdentities.queryElementAt(0, Ci.nsIMsgIdentity);
+ identity = allIdentities[0];
} else {
// If there are no identities at all, we cannot get a recipient.
return null;
}
}
emailMap[identity.email.toLowerCase()] = true;
} else {
// Build a map of usable email addresses