Peter Saint-Andre wrote: > On 11/19/09 6:01 AM, Dirk Meyer wrote: >> What happens with deleted items? E.g. you have items 1, 2, 3 and the >> current version has 1, 3, 4. The server sends 4 in <items> but must have >> a way to signal that 2 is gone now. > > As with rosters, I suppose the service would also send notification of > deletions.
I just wanted to remind you that this part is somehow missing in your last mail. I guess I should take a look at roster versioning. :) >> I have another request for the ver attribute: initial message after >> subscription. We have pubsub#send_last_published_item and I would like >> to suggest new possible values such as only_ver_on_sub_and_presence and >> only_ver_on_sub. Instead of sending the last item as PEP does, only send >> the version when a new client subscribes or gets online with >> auto-subscription. > > By "only send the version" do you mean "send the last published item but > include 'ver' attribute only if configured to do so" or "send only the > items that have changed since the version specified by the subscriber"? > If the latter, are you suggesting that the subscriber needs to > explicitly request items before sending presence? No, instead of sending the last item, only send the current 'ver'. > >> For the persistent storage using pubusb I would like to send my presence >> status to the server with the auto-subscription hash and receive the ver >> attributes of all my storage nodes (pubkeys, bookmarks) and fetch the >> changed items. > > Right, but where do you put the 'ver' in your initial presence? I don't. Right now I have a feature in my XEP-0030 list and the presence hash string to auto-subscribe. PEP uses this to send me the last published item without me doing anything. My idea is to do something similar. When I send presence, auto-subscription kicks in and similar to PEP notifies me. Unlike PEP only the current 'ver'. If I know that 'ver' I am happy, if I don't I update my persistent storage using pubsub. Dirk -- A lecture is a process where information is passed from the notebook of the lecturer to the notebook of the student without necessarily passing through the minds of either.
