Bug #261913 --> Buddy icons for screen names are not shown in message pane nor the address book.

Patch by mjg@math.arizona.edu
This commit is contained in:
scott%scott-macgregor.org 2004-09-28 17:05:34 +00:00
Родитель d090717b2b
Коммит 65cf51563c
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -846,7 +846,7 @@ function setFromBuddyIcon(email)
gIOService = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService);
gFileHandler = gIOService.getProtocolHandler("file").QueryInterface(Components.interfaces.nsIFileProtocolHandler);
var dirService = Components.classes["@mozilla.org/directory_service;1"]
var dirService = Components.classes["@mozilla.org/file/directory_service;1"]
.getService(Components.interfaces.nsIProperties);
var profileDir = dirService.get("ProfD", Components.interfaces.nsIFile);
gProfileDirURL = gIOService.newFileURI(profileDir);

Просмотреть файл

@ -337,7 +337,7 @@ function setBuddyIcon(card, buddyIcon)
if (myScreenName && card.primaryEmail) {
if (!gProfileDirURL) {
// lazily create these file urls, and keep them around
var dirService = Components.classes["@mozilla.org/directory_service;1"]
var dirService = Components.classes["@mozilla.org/file/directory_service;1"]
.getService(Components.interfaces.nsIProperties);
var profileDir = dirService.get("ProfD", Components.interfaces.nsIFile);
gProfileDirURL = gIOService.newFileURI(profileDir);