Explicitly update buddy records in DB

this should fix the bug where removing a buddy while they're offline won't take you off their list until you disconnect
This commit is contained in:
Gent
2020-11-09 05:01:51 -05:00
parent 8a68958ed4
commit f53de8d521
3 changed files with 46 additions and 1 deletions

View File

@@ -162,6 +162,10 @@ namespace Database {
void appendBlob(std::vector<char>*blob, int64_t input);
int64_t blobToInt64(std::vector<char>::iterator it);
// buddies
void addBuddyship(int playerA, int playerB);
void removeBuddyship(int playerA, int playerB);
// email
int getUnreadEmailCount(int playerID);
std::vector<EmailData> getEmails(int playerID, int page);