negativecode / vines

An XMPP chat server for Ruby.
http://www.getvines.org/
MIT License
470 stars 75 forks source link

Doesn't send initial presence to yourself #14

Open Zash opened 12 years ago

Zash commented 12 years ago

Vines doesn't send you your initial presence, which you MUST according to Section 4.2.2 of XMPP IM:

The user's server MUST also broadcast initial presence from the user's newly available resource to all of the user's available resources, including the resource that generated the presence notification in the first place (i.e., an entity is implicitly subscribed to its own presence).

Based on a quick look at lib/vines/stanza/presence.rb I would guess that switching the order of presence broadcasting and stream.available! should fix this.