Merge lp:~libqtelegram-team/telegram-app/dev-401 into lp:telegram-app/dev
Proposed by
Roberto Mier Escandon
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Michał Karnicki | ||||
Approved revision: | 139 | ||||
Merged at revision: | 140 | ||||
Proposed branch: | lp:~libqtelegram-team/telegram-app/dev-401 | ||||
Merge into: | lp:telegram-app/dev | ||||
Diff against target: |
402 lines (+118/-114) 8 files modified
lib/core/constants.h (+7/-2) lib/core/dcauth.cpp (+10/-89) lib/core/dcprovider.cpp (+24/-19) lib/core/settings.cpp (+2/-1) lib/core/tlvalues.h (+1/-0) lib/core/utils.cpp (+66/-3) lib/core/utils.h (+7/-0) qmlplugin/models/dialogsmodel.cpp (+1/-0) |
||||
To merge this branch: | bzr merge lp:~libqtelegram-team/telegram-app/dev-401 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michał Karnicki (community) | Approve | ||
Review via email: mp+245323@code.launchpad.net |
Description of the change
Changed default DC from 1 to 4. This is a workaround to fix the problem. Not known exactly the cause of the bug but this fixes it
Also simplified the process of processResPQAnswer in DcAuth class. This way code is better to be figured out if needed to be changed (and avoids original telegram-cli code way)
To post a comment you must log in.
- Modified pToBigEndian way of compare to know the length
- removed not well formated blank space
NOTE: findDivider() method searches for a divider for pq value so that
p = divider
q = pq / divider
or reverse if p < q