mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Intro redesign done.
This commit is contained in:
@@ -30,7 +30,6 @@ class HTTPConnection : public AbstractConnection {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
|
||||
HTTPConnection(QThread *thread);
|
||||
|
||||
void sendData(mtpBuffer &buffer) override;
|
||||
@@ -46,15 +45,13 @@ public:
|
||||
|
||||
QString transport() const override;
|
||||
|
||||
public slots:
|
||||
|
||||
public slots:
|
||||
void requestFinished(QNetworkReply *reply);
|
||||
|
||||
static mtpBuffer handleResponse(QNetworkReply *reply);
|
||||
static bool handleError(QNetworkReply *reply); // returnes "maybe bad key"
|
||||
|
||||
private:
|
||||
|
||||
enum Status {
|
||||
WaitingHttp = 0,
|
||||
UsingHttp,
|
||||
|
@@ -754,7 +754,7 @@ void ping() {
|
||||
}
|
||||
|
||||
void cancel(mtpRequestId requestId) {
|
||||
if (!_started) return;
|
||||
if (!_started || !requestId) return;
|
||||
|
||||
mtpMsgId msgId = 0;
|
||||
requestsDelays.remove(requestId);
|
||||
|
Reference in New Issue
Block a user