Browse Source

Remove unnecessary use of fixIterator() for MailServices.ab.directories. Follow-up to commit 5024ed3e.

master
Jörg Knobloch 1 year ago
parent
commit
e1513fd14b
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      addon/content/TbContacts.js

+ 1
- 2
addon/content/TbContacts.js View File

@ -2,14 +2,13 @@
var { MailServices } = ChromeUtils.import("resource:///modules/MailServices.jsm");
var { pEp } = ChromeUtils.import("chrome://pEp4Tb/content/modules/pEp.js");
var { fixIterator } = ChromeUtils.import("resource:///modules/iteratorUtils.jsm");
const TbContacts = {
getCardUserIdForEmail(emailAddress) {
// copied from msgHdrViewOverlay.js
const books = MailServices.ab.directories;
let userId = null;
for (let ab of fixIterator(books, Ci.nsIAbDirectory)) {
for (let ab of books) {
// Thunderbird supports four different types of address book:
// 1) Its own local address book.
// 2) LDAP address book.


Loading…
Cancel
Save