Skip to content

Commit

Permalink
Part 46
Browse files Browse the repository at this point in the history
  • Loading branch information
BaseMax committed Jun 1, 2020
1 parent 46d5123 commit b0151db
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
5 changes: 3 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()
Expand Down Expand Up @@ -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 {
Expand Down
3 changes: 1 addition & 2 deletions requested_message.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<Dialog> messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = 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--) {
Expand Down
2 changes: 1 addition & 1 deletion tlg.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit b0151db

Please sign in to comment.