Move avatar cache from 'Contacts' to 'Buddies'

This commit is contained in:
Jaidyn Ann 2021-07-26 13:47:23 -05:00
parent 4fa0542fe0
commit 96af3e6992
3 changed files with 4 additions and 4 deletions

View File

@ -35,7 +35,7 @@ Contact::_EnsureCachePath()
{ {
if (fCachePath.InitCheck() == B_OK) if (fCachePath.InitCheck() == B_OK)
return; return;
fCachePath.SetTo(ContactCachePath(fLooper->Protocol()->GetName(), fCachePath.SetTo(BuddyCachePath(fLooper->Protocol()->GetName(),
fID.String())); fID.String()));
} }

View File

@ -208,11 +208,11 @@ UserCachePath(const char* accountName, const char* userIdentifier)
const char* const char*
ContactCachePath(const char* accountName, const char* userIdentifier) BuddyCachePath(const char* accountName, const char* userIdentifier)
{ {
BPath path(AccountCachePath(accountName)); BPath path(AccountCachePath(accountName));
if (path.InitCheck() != B_OK) return NULL; if (path.InitCheck() != B_OK) return NULL;
path.Append("People"); path.Append("Buddies");
if (create_directory(path.Path(), 0755) != B_OK) return NULL; if (create_directory(path.Path(), 0755) != B_OK) return NULL;
path.Append(userIdentifier); path.Append(userIdentifier);
return path.Path(); return path.Path();

View File

@ -39,7 +39,7 @@ const char* AccountCachePath(const char* accountName);
const char* RoomsCachePath(const char* accountName); const char* RoomsCachePath(const char* accountName);
const char* RoomCachePath(const char* accountName, const char* roomIdentifier); const char* RoomCachePath(const char* accountName, const char* roomIdentifier);
const char* UserCachePath(const char* accountName, const char* userIdentifier); 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 TintColor(rgb_color color, int severity);
rgb_color ForegroundColor(rgb_color background); rgb_color ForegroundColor(rgb_color background);