mirror of
https://github.com/ars3niy/tdlib-purple
synced 2025-09-01 06:25:10 +00:00
Removed some obsolete comments and log messages
This commit is contained in:
@@ -24,8 +24,6 @@ GList *getChatJoinInfo()
|
|||||||
pce->required = FALSE;
|
pce->required = FALSE;
|
||||||
info = g_list_append (info, pce);
|
info = g_list_append (info, pce);
|
||||||
|
|
||||||
purple_debug_misc(config::pluginId, "getChatJoinInfo: first field = %s\n",
|
|
||||||
((proto_chat_entry *)info->data)->identifier);
|
|
||||||
return info;
|
return info;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -39,7 +37,6 @@ GHashTable *getChatComponents(const td::td_api::chat &chat)
|
|||||||
char name[32];
|
char name[32];
|
||||||
snprintf(name, sizeof(name)-1, "%lld", (long long)chat.id_);
|
snprintf(name, sizeof(name)-1, "%lld", (long long)chat.id_);
|
||||||
name[sizeof(name)-1] = '\0';
|
name[sizeof(name)-1] = '\0';
|
||||||
purple_debug_misc(config::pluginId, "Creating chat %s='%s'\n", idKey, name);
|
|
||||||
|
|
||||||
GHashTable *table = g_hash_table_new_full (g_str_hash, g_str_equal, NULL, g_free);
|
GHashTable *table = g_hash_table_new_full (g_str_hash, g_str_equal, NULL, g_free);
|
||||||
g_hash_table_insert(table, idKey, g_strdup(name));
|
g_hash_table_insert(table, idKey, g_strdup(name));
|
||||||
|
@@ -69,9 +69,6 @@ public:
|
|||||||
m_owner->updateSupergroup(std::move(groupUpdate.supergroup_));
|
m_owner->updateSupergroup(std::move(groupUpdate.supergroup_));
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO updateBasicGroup
|
|
||||||
// TODO updateSupergroup
|
|
||||||
|
|
||||||
void operator()(auto &update) const {
|
void operator()(auto &update) const {
|
||||||
purple_debug_misc(config::pluginId, "Incoming update: ignorig ID=%d\n", update.get_id());
|
purple_debug_misc(config::pluginId, "Incoming update: ignorig ID=%d\n", update.get_id());
|
||||||
}
|
}
|
||||||
@@ -426,7 +423,6 @@ void PurpleTdClient::updateBasicGroupChat(int32_t groupId)
|
|||||||
group->id_);
|
group->id_);
|
||||||
else {
|
else {
|
||||||
std::string chatName = getChatName(*chat);
|
std::string chatName = getChatName(*chat);
|
||||||
purple_debug_misc(config::pluginId, "Looking for purple chat '%s'\n", chatName.c_str());
|
|
||||||
PurpleChat *purpleChat = purple_blist_find_chat(m_account, chatName.c_str());
|
PurpleChat *purpleChat = purple_blist_find_chat(m_account, chatName.c_str());
|
||||||
if (!purpleChat) {
|
if (!purpleChat) {
|
||||||
purple_debug_misc(config::pluginId, "Adding new chat for basic group %d (%s)\n",
|
purple_debug_misc(config::pluginId, "Adding new chat for basic group %d (%s)\n",
|
||||||
@@ -451,7 +447,6 @@ void PurpleTdClient::updateSupergroupChat(int32_t groupId)
|
|||||||
group->id_);
|
group->id_);
|
||||||
else {
|
else {
|
||||||
std::string chatName = getChatName(*chat);
|
std::string chatName = getChatName(*chat);
|
||||||
purple_debug_misc(config::pluginId, "Looking for purple chat '%s'\n", chatName.c_str());
|
|
||||||
PurpleChat *purpleChat = purple_blist_find_chat(m_account, chatName.c_str());
|
PurpleChat *purpleChat = purple_blist_find_chat(m_account, chatName.c_str());
|
||||||
if (!purpleChat) {
|
if (!purpleChat) {
|
||||||
purple_debug_misc(config::pluginId, "Adding new chat for supergroup %d (%s)\n",
|
purple_debug_misc(config::pluginId, "Adding new chat for supergroup %d (%s)\n",
|
||||||
|
Reference in New Issue
Block a user