From b47620968e9f262ddc5d0072c00891a2ca952791 Mon Sep 17 00:00:00 2001 From: Jonathon Jongsma Date: Tue, 5 Oct 2010 11:55:52 -0500 Subject: [PATCH] ContactInfo: Add flag for fields that are overwritten by nickname It's likely that clients will want to expose the user's nickname and their contact info in the same place for editing. Howevever, many CMs map one of the ContactInfo fields to the user's nickname, so editing these two fields independantly at the same time results in surprising behavior. Adding a flag to the ContactInfo field will allow clients to hide these duplicate fields when presenting them together. Fixes: fd.o#30631 --- spec/Connection_Interface_Contact_Info.xml | 30 ++++++++++++++++++++++++++++ 1 files changed, 30 insertions(+), 0 deletions(-) diff --git a/spec/Connection_Interface_Contact_Info.xml b/spec/Connection_Interface_Contact_Info.xml index ce77a56..527d325 100644 --- a/spec/Connection_Interface_Contact_Info.xml +++ b/spec/Connection_Interface_Contact_Info.xml @@ -470,6 +470,36 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + + +

Indicates that this field will be overwritten when the user's alias + is changed with SetAliases + or when the Account's Nickname + is updated. Clients that allow the editing of the Alias and the + ContactInfo in the same location should hide fields with this flag.

+ +

If a client allowed the user to edit both the nickname and the + ContactInfo field at the same time, the user could set them to two + different values even though they map to the same property. This + would result in surprising behavior where the second value would + win over the first.

+
+

In addition to hiding this field when editing ContactInfo together + with the user's nickname, it is recommended that clients call + SetContactInfo before setting the + user's nickname.

+ +

This ensures that if the user changes the nickname, the correct + value will get set even if the stale nickname is mistakenly sent + along with SetContactInfo.

+
+

If used, this flag typically appears on either the 'nickname' or + 'fn' field.

+
+
-- 1.7.1