Comment 9 for bug 1517626

Revision history for this message
Paz Chauhan (paz-chauhan) wrote :

Library code changes are as follows:

In telegram.cpp (found in deps/libqtelegram-ae) method messagesCreateEncryptedChat, to the following:

qint64 Telegram::messagesCreateEncryptedChat(const InputUser &user) {

    qCDebug(TG_LIB_SECRET) << "creating new encrypted chat";
    // generate a new object where store all the needed secret chat data
    SecretChat *secretChat = new SecretChat(prv->mSettings);
    secretChat->setAdminId(prv->mSettings->ourId());
    secretChat->setParticipantId(user.userId());
    secretChat->setRequestedUser(user);
    return generateGAorB(secretChat);
}