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);
}
Library code changes are as follows:
In telegram.cpp (found in deps/libqtelegr am-ae) method messagesCreateE ncryptedChat, to the following:
qint64 Telegram: :messagesCreate EncryptedChat( const InputUser &user) {
qCDebug( TG_LIB_ SECRET) << "creating new encrypted chat"; prv->mSettings) ; >setAdminId( prv->mSettings- >ourId( )); >setParticipant Id(user. userId( )); >setRequestedUs er(user) ; secretChat) ;
// generate a new object where store all the needed secret chat data
SecretChat *secretChat = new SecretChat(
secretChat-
secretChat-
secretChat-
return generateGAorB(
}