Merge lp:~renatofilho/address-book-service/fix-1231397 into lp:address-book-service

Proposed by Renato Araujo Oliveira Filho
Status: Merged
Approved by: Gustavo Pichorim Boiko
Approved revision: 78
Merged at revision: 79
Proposed branch: lp:~renatofilho/address-book-service/fix-1231397
Merge into: lp:address-book-service
Diff against target: 27 lines (+8/-2)
1 file modified
src/update-contact-request.cpp (+8/-2)
To merge this branch: bzr merge lp:~renatofilho/address-book-service/fix-1231397
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Gustavo Pichorim Boiko (community) Approve
Review via email: mp+188673@code.launchpad.net

Commit message

Fixed service timeout when updating the e-mail address.

To post a comment you must log in.
Revision history for this message
Gustavo Pichorim Boiko (boiko) wrote :

Looks good and works as expected.

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

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/update-contact-request.cpp'
2--- src/update-contact-request.cpp 2013-09-24 23:31:21 +0000
3+++ src/update-contact-request.cpp 2013-10-01 18:07:58 +0000
4@@ -732,7 +732,12 @@
5 self->updateFullName();
6 break;
7 case QContactDetail::TypeEmailAddress:
8- self->updateEmail();
9+ //WORKAROUND: Folks automatically add online accounts based on e-mail address
10+ // for example user@gmail.com will create a jabber account, and this causes some
11+ // confusions on the service during the update, because of that we first update
12+ // the online account and this will avoid problems with the automatic update ]
13+ // from folks
14+ self->updateOnlineAccount();
15 break;
16 case QContactDetail::TypeFavorite:
17 self->updateFavorite();
18@@ -747,7 +752,8 @@
19 self->updateNote();
20 break;
21 case QContactDetail::TypeOnlineAccount:
22- self->updateOnlineAccount();
23+ //WORKAROUND: see TypeEmailAddress update clause
24+ self->updateEmail();
25 break;
26 case QContactDetail::TypeOrganization:
27 self->updateOrganization();

Subscribers

People subscribed via source and target branches