mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-02 23:45:44 +00:00
Support auto-migrate to supergroups.
This commit is contained in:
@@ -156,8 +156,11 @@ void Session::createDcData() {
|
||||
connect(dc.get(), SIGNAL(connectionWasInited()), this, SLOT(connectionWasInitedForDC()), Qt::QueuedConnection);
|
||||
}
|
||||
|
||||
bool Session::rpcErrorOccured(mtpRequestId requestId, const RPCFailHandlerPtr &onFail, const RPCError &err) { // return true if need to clean request data
|
||||
return _instance->rpcErrorOccured(requestId, onFail, err);
|
||||
bool Session::rpcErrorOccured(
|
||||
mtpRequestId requestId,
|
||||
const RPCFailHandlerPtr &onFail,
|
||||
const RPCError &error) { // return true if need to clean request data
|
||||
return _instance->rpcErrorOccured(requestId, onFail, error);
|
||||
}
|
||||
|
||||
void Session::restart() {
|
||||
@@ -618,9 +621,5 @@ Session::~Session() {
|
||||
Assert(_connection == nullptr);
|
||||
}
|
||||
|
||||
MTPrpcError rpcClientError(const QString &type, const QString &description) {
|
||||
return MTP_rpc_error(MTP_int(0), MTP_string(("CLIENT_" + type + (description.length() ? (": " + description) : "")).toUtf8().constData()));
|
||||
}
|
||||
|
||||
} // namespace internal
|
||||
} // namespace MTP
|
||||
|
Reference in New Issue
Block a user