eusoulevi / emite

Automatically exported from code.google.com/p/emite
0 stars 0 forks source link

Presence of new added roster items don't show correct Show and icon in roster ui #53

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Its easy, update roster must be fired twice with the packet we receive:
- 1st. because of the subscription change
- 2nd. because later in the same packet, presence changes also (from
unavailable to show).

With some tests we think we can solve this nasty issue ;)

[DEBUG] GWT CONNECTOR RECEIVED: <body
xmlns='http://jabber.org/protocol/httpbind'><iq type="set" id="649-146"
to="test9@emitedemo.ourproject.org/emiteui-1209477008176"><query
xmlns="jabber:iq:roster"><item jid="vjrj@emitedemo.ourproject.org"
subscription="both"/></query></iq><presence type="subscribed"
from="vjrj@emitedemo.ourproject.org"
to="test9@emitedemo.ourproject.org"/><presence
from="vjrj@emitedemo.ourproject.org/emiteui-1209475187829"
to="test9@emitedemo.ourproject.org/emiteui-1209477008176"><show>chat</show></pre
sence></body>
[DEBUG] Dispatching: com.calclab.emite.client.core.packet.gwt.GWTPacket@1d
[DEBUG] DISPATCH BEGINS >>>>>>>>>>>
[DEBUG] Dispatching: com.calclab.emite.client.core.packet.gwt.GWTPacket@1e
[DEBUG] Dispatching: com.calclab.emite.client.core.packet.gwt.GWTPacket@1f
[DEBUG] Dispatching: com.calclab.emite.client.core.packet.gwt.GWTPacket@20
[DEBUG] Dispatching: <event xmlns="emite:event"
type="connection:do:send"><iq xmlns="jabber:client" type="result"
id="649-146" /></event>
[INFO] Updating roster item: vjrj@emitedemo.ourproject.org name: vjrj
subsc: both
[INFO] PRESENCE: type: unavailable from: null show: away status: null
[INFO] SUBS RECEIVED
[INFO] PRESENCE: type: subscribed from: vjrj@emitedemo.ourproject.org show:
notSpecified status: null

<<<<<<<<<<<<<<< HERE UI need a Updating roster event again!!!!

[INFO] PRESENCE: type: available from:
vjrj@emitedemo.ourproject.org/emiteui-1209475187829 show: chat status: null

Original issue reported on code.google.com by vruiz.ju...@gmail.com on 29 Apr 2008 at 2:09

GoogleCodeExporter commented 9 years ago

Original comment by vruiz.ju...@gmail.com on 29 Apr 2008 at 2:10

GoogleCodeExporter commented 9 years ago
Another way to fix, expecting something similar to these logs:

[INFO] PRESENCE: type: unavailable from: null show: away status: null
[INFO] SUBS RECEIVED
[INFO] PRESENCE: type: subscribed from: vjrj@emitedemo.ourproject.org show:
notSpecified status: null
[INFO] PRESENCE: type: available from:
vjrj@emitedemo.ourproject.org/emiteui-1209475187829 show: chat status: null

------- the update event After subs & presence changed in roster:

[INFO] Updating roster item: vjrj@emitedemo.ourproject.org name: vjrj
subsc: both

Original comment by vruiz.ju...@gmail.com on 29 Apr 2008 at 5:31

GoogleCodeExporter commented 9 years ago

Original comment by vruiz.ju...@gmail.com on 16 May 2008 at 9:38