ubports / telegram-app

Unofficial Telegram App for Ubuntu Desktop & Mobile
GNU General Public License v3.0
55 stars 23 forks source link

Fix secret chat´s persistency problem #72

Open Flohack74 opened 7 years ago

Flohack74 commented 7 years ago

Currently a secret chat is not usable anymore after Telegram is closed and re-opened. Something must be wrong when saving the chat metadata to the local db. After a new start one gets INVALID_PEER_ID so probably its the peer id which is not correct.

Flohack74 commented 7 years ago

Basically the problem stems from not assigning the telegram settings object at the right time and then not executing refreshSecretChats() properly (nothing gets loaded).