From 96af3e6992c1cefd25352e256c361d88bd400149 Mon Sep 17 00:00:00 2001 From: Jaidyn Ann Date: Mon, 26 Jul 2021 13:47:23 -0500 Subject: [PATCH] Move avatar cache from 'Contacts' to 'Buddies' --- application/Contact.cpp | 2 +- application/Utils.cpp | 4 ++-- application/Utils.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/application/Contact.cpp b/application/Contact.cpp index 0ad3d9b..15fa943 100644 --- a/application/Contact.cpp +++ b/application/Contact.cpp @@ -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())); } diff --git a/application/Utils.cpp b/application/Utils.cpp index f22c3ab..4d33ad1 100644 --- a/application/Utils.cpp +++ b/application/Utils.cpp @@ -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(); diff --git a/application/Utils.h b/application/Utils.h index f5f6087..e1c334d 100644 --- a/application/Utils.h +++ b/application/Utils.h @@ -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);