2
0
mirror of https://github.com/ars3niy/tdlib-purple synced 2025-08-31 05:55:08 +00:00

Added comment about auto-removing contacts

This commit is contained in:
Arseniy Lartsev
2020-05-04 16:21:50 +02:00
parent 00cef86071
commit f813f4d8ba

View File

@@ -398,6 +398,9 @@ void PurpleTdClient::updatePurpleChatListAndReportConnected()
getPurpleStatusId(*user->status_), NULL);
}
// Here we could remove buddies for which no private chat exists, meaning they have been remove
// from the contact list perhaps in another client
const td::td_api::user *selfInfo = m_data.getUserByPhone(purple_account_get_username(m_account));
if (selfInfo != nullptr) {
std::string alias = selfInfo->first_name_ + " " + selfInfo->last_name_;