From b0151db694a92a34425c599578ea7604198a4aaa Mon Sep 17 00:00:00 2001 From: Max Base Date: Mon, 1 Jun 2020 18:09:54 +0430 Subject: [PATCH] Part 46 --- main.js | 5 +++-- requested_message.js | 3 +-- tlg.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/main.js b/main.js index 2d40ece..f41295a 100644 --- a/main.js +++ b/main.js @@ -2,7 +2,7 @@ var forwarded_history=null var msg_counter = 0 var history_length = 0 - var portion = 20 + var portion = 100 var history_pos = 0 var history_forwarded = 0 var history_forward_source = null @@ -26,7 +26,7 @@ if(history_length <= history_forwarded){ document.getElementById('resend').disabled= true } - document.getElementById('resend').innerHTML="ReSend " + history_forwarded + " out of " + history_length + //document.getElementById('resend').innerHTML="ReSend " + history_forwarded + " out of " + history_length document.getElementById('tgresult').appendChild(renderjson(arguments[0],"forward history")); forwarded_history = arguments[0] forwardHistory() @@ -77,6 +77,7 @@ function forward_history_result(){ document.getElementById('tgresult').appendChild(renderjson(arguments[0],"forward history element")); msg_counter-- + document.getElementById('resend').innerHTML="ReSend " + (history_forwarded-msg_counter) + " out of " + history_length if(msg_counter>0) { forwardHistory() } else { diff --git a/requested_message.js b/requested_message.js index e74fa89..5a1c397 100644 --- a/requested_message.js +++ b/requested_message.js @@ -424,9 +424,8 @@ function getDialogs(){//messages.getDialogs#a0ee3b73 flags:# exclude_pinned:flag mode = 8 } const _getDialogs = function(ob){ + document.getElementById('tgresult').appendChild(renderjson(arguments[0],"get Dialog result")); if(ob.tl_constructor == 0x15ba6c40 | ob.tl_constructor == 0x71e094f3){//messages.dialogs#15ba6c40 dialogs:Vector messages:Vector chats:Vector users:Vector = messages.Dialogs;) - document.getElementById('tgresult').appendChild(renderjson(arguments[0],"get Dialog result")); - //for test only clear dialog list============================================================================== var len = userlist.options.length; for (var j=len; j; j--) { diff --git a/tlg.js b/tlg.js index 10b09dc..7af17e2 100644 --- a/tlg.js +++ b/tlg.js @@ -6,7 +6,7 @@ include('requested_message.js') include('not_requested_message.js') //enable-dissable auto connect to file DC -const DCenable = true//false +const DCenable = false // const userlist = document.getElementById('users_list') const mtproto_state = document.getElementById('mtprotoresult')