Merge lp:~libqtelegram-team/telegram-app/app-crash-secret-chat-accepted into lp:telegram-app/dev
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | MichaĆ Karnicki | ||||
Approved revision: | 162 | ||||
Merged at revision: | 161 | ||||
Proposed branch: | lp:~libqtelegram-team/telegram-app/app-crash-secret-chat-accepted | ||||
Merge into: | lp:telegram-app/dev | ||||
Diff against target: |
110 lines (+30/-1) 5 files modified
lib/core/settings.cpp (+17/-0) lib/core/settings.h (+2/-0) lib/secret/secretchat.cpp (+5/-0) lib/secret/secretchat.h (+1/-0) lib/telegram.cpp (+5/-1) |
||||
To merge this branch: | bzr merge lp:~libqtelegram-team/telegram-app/app-crash-secret-chat-accepted | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
libqtelegram team | Pending | ||
Review via email: mp+248572@code.launchpad.net |
Description of the change
Stored priv key in settings and loading it when app starts up. This lets secret chat not created yet having that private key to finish the shared key creation if needed (when the peer was offline when we sent the chat creation request and accepts the chat creation after we have shutdown + started again the app)
Tested:
With current app-dev branch in ubuntu, and having the peer on Android:
- Put peer in flight mode
- Send a request of a new secret chat from ubuntu to android
- Stopped Tg
- Started Tg
- Peer flight mode off (secret chat is accepted and created on android)
- Checked that the secret chat is created also in ubuntu and can be used
Second test
- Put peer in flight mode
- Send a request of a new secret chat from ubuntu to android
- Stopped Tg
- Peer flight mode off (secret chat is accepted and created on android)
- Started Tg
- Checked that the secret chat is created on ubuntu and can be used