summaryrefslogtreecommitdiff
path: root/spec/Connection_Interface_Avatars.xml
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2008-08-15 17:11:30 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2008-08-15 17:11:30 +0100
commit89e35c24e3fe5e3dabe28624e501c6ca3f08bd6a (patch)
tree2e438fab4b9c765ef5eb844387f823d094b091e4 /spec/Connection_Interface_Avatars.xml
parent12581896df69cb3f702c8c9986d995ac37ce7074 (diff)
Update to spec 0.17.9 release
Diffstat (limited to 'spec/Connection_Interface_Avatars.xml')
-rw-r--r--spec/Connection_Interface_Avatars.xml19
1 files changed, 13 insertions, 6 deletions
diff --git a/spec/Connection_Interface_Avatars.xml b/spec/Connection_Interface_Avatars.xml
index 9395a6efd..53d31082f 100644
--- a/spec/Connection_Interface_Avatars.xml
+++ b/spec/Connection_Interface_Avatars.xml
@@ -154,10 +154,13 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.</
<tp:docstring>
Get the unique tokens for the given contacts' avatars. These tokens
can be persisted across connections, and should be used by the client
- to check whether the avatars have been updated. A CM must always have
- the tokens for the self handle if one is set (even if it is set to no
- avatar). Otherwise, only tokens that are already known are returned. An
- empty token means the given contact has no avatar.
+ to check whether the avatars have been updated. For handles other than
+ the self handle, only tokens that are already known are returned; an
+ empty token means the given contact has no avatar. However, a CM must
+ always have the tokens for the self handle if one is set (even if it is
+ set to no avatar). On protocols where the avatar does not persist
+ between connections, a CM should omit the self handle from the returned
+ map until an avatar is explicitly set or cleared.
</tp:docstring>
<tp:possible-errors>
<tp:error name="org.freedesktop.Telepathy.Error.Disconnected"/>
@@ -282,8 +285,12 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.</
the avatar is persistent, but on others it is transferred via a peer to
peer mechanism, so needs to be set every connection. Hence, on every
connection, clients should inspect the avatar token of the connection's
- self handle, and set the avatar if it is an empty string (and may
- optionally replace it if the token corresponds to a different avatar).</p>
+ self handle using GetKnownAvatarTokens; if the self handle is not in the
+ returned map, the client should re-set the avatar. If the self handle's
+ avatar token is known, but the avatar has been changed locally since the
+ last connection, the client should upload the new avatar; if the avatar has
+ not changed locally, then the client should download the avatar from the
+ server if its token differs from the that of the local avatar.</p>
<p>To remove the published avatar on protocols which have persistent avatars,
a client should use the ClearAvatar method. This method can safely be used