1
0
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:
Enrico Fasoli 2015-09-05 22:29:34 +02:00
parent 145eb82312
commit c746299d9d
2 changed files with 2 additions and 1 deletions

View File

@ -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()

View File

@ -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