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

Verify libpurple actions in tests

This commit is contained in:
Arseniy Lartsev
2020-05-07 13:55:48 +02:00
parent 1153ca8e82
commit af94d3b765
8 changed files with 441 additions and 38 deletions

View File

@@ -386,7 +386,6 @@ void PurpleTdClient::showPrivateChat(const td::td_api::chat &chat, const td::td_
void PurpleTdClient::updatePurpleChatListAndReportConnected()
{
purple_connection_set_state (purple_account_get_connection(m_account), PURPLE_CONNECTED);
purple_blist_add_account(m_account);
// Only populate the list from scratch
std::vector<const td::td_api::chat *> privateChats;
@@ -413,6 +412,8 @@ void PurpleTdClient::updatePurpleChatListAndReportConnected()
} else
purple_debug_warning(config::pluginId, "Did not receive user information for self (%s) at login\n",
purple_account_get_username(m_account));
purple_blist_add_account(m_account);
}
static const char *getText(const td::td_api::message &message)