Move avatar cache from 'Contacts' to 'Buddies'
This commit is contained in:
parent
4fa0542fe0
commit
96af3e6992
|
@ -35,7 +35,7 @@ Contact::_EnsureCachePath()
|
|||
{
|
||||
if (fCachePath.InitCheck() == B_OK)
|
||||
return;
|
||||
fCachePath.SetTo(ContactCachePath(fLooper->Protocol()->GetName(),
|
||||
fCachePath.SetTo(BuddyCachePath(fLooper->Protocol()->GetName(),
|
||||
fID.String()));
|
||||
}
|
||||
|
||||
|
|
|
@ -208,11 +208,11 @@ UserCachePath(const char* accountName, const char* userIdentifier)
|
|||
|
||||
|
||||
const char*
|
||||
ContactCachePath(const char* accountName, const char* userIdentifier)
|
||||
BuddyCachePath(const char* accountName, const char* userIdentifier)
|
||||
{
|
||||
BPath path(AccountCachePath(accountName));
|
||||
if (path.InitCheck() != B_OK) return NULL;
|
||||
path.Append("People");
|
||||
path.Append("Buddies");
|
||||
if (create_directory(path.Path(), 0755) != B_OK) return NULL;
|
||||
path.Append(userIdentifier);
|
||||
return path.Path();
|
||||
|
|
|
@ -39,7 +39,7 @@ const char* AccountCachePath(const char* accountName);
|
|||
const char* RoomsCachePath(const char* accountName);
|
||||
const char* RoomCachePath(const char* accountName, const char* roomIdentifier);
|
||||
const char* UserCachePath(const char* accountName, const char* userIdentifier);
|
||||
const char* ContactCachePath(const char* accountName, const char* userIdentifier);
|
||||
const char* BuddyCachePath(const char* accountName, const char* userIdentifier);
|
||||
|
||||
rgb_color TintColor(rgb_color color, int severity);
|
||||
rgb_color ForegroundColor(rgb_color background);
|
||||
|
|
Ŝarĝante…
Reference in New Issue