loqui / im

Loqui IM allows you to use all your chat accounts in just one FirefoxOS or Ubuntu Touch app.
https://loqui.im
304 stars 112 forks source link

[ubuntu touch] Canno't close the app from the quit button #1162

Open TronFortyTwo opened 7 years ago

TronFortyTwo commented 7 years ago

If you press the button quit in the left panel, appear a banner on the top saying that LoquiM qill close soon, but then the banner disappear but the app doesn't close.

nfsprodriver commented 7 years ago

Problem seems to be here: https://github.com/loqui/im/blob/dev/src/scripts/loqui/menu.js#L410 Must be fit for Ubuntu Touch...

nfsprodriver commented 7 years ago

Is it possible to pass a system command into that function closing LoquiIM (app id)?

avisoftware commented 7 years ago

@nfsprodriver it is not the killall function it is window.close() https://github.com/loqui/im/blob/dev/src/scripts/loqui/menu.js#L413

nfsprodriver commented 7 years ago

Right, the killall says to logout from all account (App.js), right?

avisoftware commented 7 years ago

yes. my guess that the req variable is undefined var req = navigator.mozAlarms.getAll(); so the timer has never set.

nfsprodriver commented 7 years ago

So if it's not possible to make webcontainer call its closure, we should give a UI hint for that when button has been clicked.