Move avatar cache from 'Buddies' to 'Contacts'

This commit is contained in:
Jaidyn Ann 2021-07-26 16:07:55 -05:00
parent 4710e7f19f
commit 6c1c5ccf18
4 changed files with 5 additions and 5 deletions

View File

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

View File

@ -208,11 +208,11 @@ UserCachePath(const char* accountName, const char* userIdentifier)
const char* const char*
BuddyCachePath(const char* accountName, const char* userIdentifier) ContactCachePath(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("Buddies"); path.Append("Contacts");
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* BuddyCachePath(const char* accountName, const char* userIdentifier); const char* ContactCachePath(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);

View File

@ -1707,7 +1707,7 @@ const char*
buddies_cache(PurpleAccount* account) buddies_cache(PurpleAccount* account)
{ {
BPath path(account_cache(account)); BPath path(account_cache(account));
path.Append("Buddies"); path.Append("Contacts");
if (create_directory(path.Path(), 0755) != B_OK) if (create_directory(path.Path(), 0755) != B_OK)
return NULL; return NULL;
return path.Path(); return path.Path();