telepathy-morse
telepathy-morse copied to clipboard
Can't connect after disconecting
After authenticating via entering the pin code from telegram everything is fine. But when disconnecting afterwards and reconnecting it doesn't work until the secret cache is removed. My System: Name : telepathy-morse-git Version : r198.e8c2ef9-2 Branch build from : dev Name : telegram-qt-git Version : r1141.1e45787-1 Branch build from : master Distro : Arch Linux
Log:
https://paste.kde.org/pamwbxutq
I seems that the connection manager caches the secret when there's no pin code entered.
Yes, that's true. At December I had the same issue and a workaround for the old API would require a complex logic. The issue is ruled out in the new API, I hope to roll out the first Morse port before April.
So just delete the cache everytime I get a dc or is there a better workaround?
What do you mean by new API?
Probably fixed by commit https://github.com/Kaffeine/telegram-qt/commit/4c5eb3016269cd7596ce390aa12e2dfb8e209135
The new API is growing in the 'next' branch. I'll let you know when it will be capable to receive text messages. :-) :-(
After logging sucsessfull, the 2nd time just get stuck but still asks for a key at telegram and doesn't ask for this key at tp
Log for the time when this happens tp_morse.log
Always this error: bool CTelegramConnection::processRpcError(CTelegramStream&, quint64, TLValue) "RPC Error 420: FLOOD_WAIT_74696 for message 6545897377532202508 AuthSendCode (dc 2|149.154.167.51:443)" RPC Error can not be handled.
I think the issue is that this is not handled: https://core.telegram.org/api/errors#420-flood
Works now. Except that after sometime no messsages come in.