Skip to content
This repository has been archived by the owner on Mar 8, 2020. It is now read-only.

Commit

Permalink
Disabled unused queries (still can't understand how to disable the lo…
Browse files Browse the repository at this point in the history
…ading icon in dialogs and messages)
  • Loading branch information
danog committed Sep 22, 2016
1 parent 6f680b0 commit 90f02f0
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ private void reloadDialogsReadValue(ArrayList<TLRPC.TL_dialog> dialogs, long did
if (dialogs.isEmpty()) {
return;
}

/*
TLRPC.TL_messages_getPeerDialogs req = new TLRPC.TL_messages_getPeerDialogs();
if (dialogs != null) {
for (int a = 0; a < dialogs.size(); a++) {
Expand Down Expand Up @@ -944,6 +944,7 @@ public void run(TLObject response, TLRPC.TL_error error) {
}
}
});
*/

}

Expand Down Expand Up @@ -2413,6 +2414,7 @@ public void loadMessages(final long dialog_id, final int count, final int max_id
if (fromCache || lower_part == 0) {
MessagesStorage.getInstance().getMessages(dialog_id, count, max_id, midDate, classGuid, load_type, isChannel, loadIndex);
} else {
/*
TLRPC.TL_messages_getHistory req = new TLRPC.TL_messages_getHistory();
req.peer = getInputPeer(lower_part);
if (load_type == 3) {
Expand Down Expand Up @@ -2445,6 +2447,7 @@ public void run(TLObject response, TLRPC.TL_error error) {
}
});
ConnectionsManager.getInstance().bindRequestToGuid(reqId, classGuid);
*/
}
}

Expand Down Expand Up @@ -2663,7 +2666,7 @@ public void loadDialogs(final int offset, final int count, boolean fromCache) {
MessagesStorage.getInstance().getDialogs(offset == 0 ? 0 : nextDialogsCacheOffset, count);
loadingDialogs = false;
} else {

FileLog.e("tmessages", "Abort loading");
loadingDialogs = false;
/*
TLRPC.TL_messages_getDialogs req = new TLRPC.TL_messages_getDialogs();
Expand Down Expand Up @@ -3143,6 +3146,7 @@ public void run() {
if (!dialogsToReload.isEmpty()) {
reloadDialogsReadValue(dialogsToReload, 0);
}

}
});
}
Expand Down Expand Up @@ -3634,6 +3638,7 @@ public void run() {
});

if (max_positive_id != Integer.MAX_VALUE) {
/*
ConnectionsManager.getInstance().sendRequest(req, new RequestDelegate() {
@Override
public void run(TLObject response, TLRPC.TL_error error) {
Expand All @@ -3645,6 +3650,7 @@ public void run(TLObject response, TLRPC.TL_error error) {
}
}
});
*/
}

} else {
Expand Down

0 comments on commit 90f02f0

Please sign in to comment.