Merge lp:~tiagosh/telepathy-ofono/fix-1372646 into lp:telepathy-ofono

Proposed by Tiago Salem Herrmann
Status: Merged
Approved by: Gustavo Pichorim Boiko
Approved revision: 114
Merged at revision: 136
Proposed branch: lp:~tiagosh/telepathy-ofono/fix-1372646
Merge into: lp:telepathy-ofono
Diff against target: 21 lines (+2/-2)
1 file modified
connection.cpp (+2/-2)
To merge this branch: bzr merge lp:~tiagosh/telepathy-ofono/fix-1372646
Reviewer Review Type Date Requested Status
Gustavo Pichorim Boiko (community) Approve
PS Jenkins bot continuous-integration Approve
Review via email: mp+237685@code.launchpad.net

Commit message

Don't try to compare phone numbers, otherwise channels with wrong handles can be mistakenly reused when not intended.

Description of the change

Don't try to compare phone numbers, otherwise channels with wrong handles can be mistakenly reused when not intended.

--Checklist--
Are there any related MPs required for this MP to build/function as expected? Please list.
No

Is your branch in sync with latest trunk (e.g. bzr pull lp:trunk -> no changes)
Yes

Did you perform an exploratory manual test run of your code change and any related functionality on device or emulator?
Yes

Did you successfully run all tests found in your component's Test Plan (https://wiki.ubuntu.com/Process/Merges/TestPlan/<package-name>) on device or emulator?
Yes

If you changed the UI, was the change specified/approved by design?
N/A

If you changed UI labels, did you update the pot file?
N/A

If you changed the packaging (debian), did you add a core-dev as a reviewer to this MP?
N/A

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
114. By Tiago Salem Herrmann

merge trunk

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Gustavo Pichorim Boiko (boiko) wrote :

Did you perform an exploratory manual test run of the code change and any related functionality on device or emulator?
Yes

Did CI run pass? If not, please explain why.
Yes

Have you checked that submitter has accurately filled out the submitter checklist and has taken no shortcut?
Yes

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'connection.cpp'
2--- connection.cpp 2015-02-04 19:58:17 +0000
3+++ connection.cpp 2015-03-31 16:43:03 +0000
4@@ -361,7 +361,7 @@
5
6 Q_FOREACH(const QString &phoneNumberNew, members) {
7 Q_FOREACH(const QString &phoneNumberOld, phoneNumbersOld) {
8- if (PhoneUtils::comparePhoneNumbers(PhoneUtils::normalizePhoneNumber(phoneNumberOld), PhoneUtils::normalizePhoneNumber(phoneNumberNew))) {
9+ if (PhoneUtils::normalizePhoneNumber(phoneNumberOld) == PhoneUtils::normalizePhoneNumber(phoneNumberNew)) {
10 count++;
11 }
12 }
13@@ -919,7 +919,7 @@
14 const QString normalizedNumber = PhoneUtils::normalizePhoneNumber(phoneNumber);
15
16 Q_FOREACH(const QString &phone, mHandles.values()) {
17- if (PhoneUtils::comparePhoneNumbers(normalizedNumber, phone)) {
18+ if (normalizedNumber == phone) {
19 // this user already exists
20 return mHandles.key(phone);
21 }

Subscribers

People subscribed via source and target branches