mirror of
https://github.com/fazo96/telecommander.git
synced 2025-01-09 11:29:51 +01:00
fixed a few small bugs
This commit is contained in:
parent
145eb82312
commit
c746299d9d
@ -228,7 +228,7 @@ module.exports = function(data){
|
||||
data.screen.on('resize',function(){
|
||||
for(i in data.msgBox){
|
||||
item = data.msgBox[i]
|
||||
item.height = data.screen.height - data.cmdline.height
|
||||
item.height = data.screen.height - data.cmdline.height - 2
|
||||
}
|
||||
data.chats.height = data.screen.height - data.cmdline.height
|
||||
data.screen.render()
|
||||
|
@ -82,6 +82,7 @@ data.onPhoneCode = function(something,s){
|
||||
if(((!name || !lastname) && !data.user.registered) || !code)
|
||||
return log('insufficient arguments:',cmd) // TODO: handle this better!
|
||||
var cb = function(result){
|
||||
data.user = data.user || {}
|
||||
data.user.id = ''+result.user.id
|
||||
data.user.phone = result.user.phone
|
||||
data.user.phoneCodeHash = result.phone_code_hash
|
||||
|
Loading…
Reference in New Issue
Block a user