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

Fixed some problems after re-enabling compiler warnings

This commit is contained in:
Arseniy Lartsev
2020-05-31 17:22:04 +02:00
parent 1756fcf382
commit 6d78a59ef1
2 changed files with 2 additions and 3 deletions

View File

@@ -170,6 +170,7 @@ void PurpleTdClient::processUpdate(td::td_api::Object &update)
purple_debug_misc(config::pluginId, "Incoming update: secret chat, id %d\n",
chatUpdate.secret_chat_ ? chatUpdate.secret_chat_->id_ : 0);
updateSecretChat(std::move(chatUpdate.secret_chat_), m_transceiver, m_data);
break;
};
default:
@@ -1791,7 +1792,7 @@ void PurpleTdClient::verifyRecoveryEmailResponse(uint64_t requestId, td::td_api:
void PurpleTdClient::sendFileToChat(PurpleXfer *xfer, const char *purpleName, PurpleConversationType type)
{
const char *filename = purple_xfer_get_local_filename(xfer);
int64_t chatId;
int64_t chatId = 0;
if (type == PURPLE_CONV_TYPE_IM)
chatId = getPrivateChatIdByPurpleName(purpleName, m_data, "send file");