xmpp - Not getting unavailable presence of User A when User B is also unavailable -


i working on chat application. adding functionality unavailable status of user. following situation not getting unavailable presence of user

there 2 users user , user b , both available

first user goes unavailable , user b gets unavailable presence of user , working fine, user b goes unavailable , user become available here problems occur user not receive offline unavailable presence of user b.

but when user unavailable , user b become available , user become available in case user getting offline available presence of user b working fine.

so here problem in case of offline unavailable presence of other users not coming. offline available presence coming

below code using going available , unavailable

 - (void)goonline {      xmpppresence *presence = [xmpppresence presence]; // type="available" implicit  [[self xmppstream] sendelement:presence]; }  - (void)gooffline { xmpppresence *presence = [xmpppresence presencewithtype:@"unavailable"]; [[self xmppstream] sendelement:presence]; 

}

thanks in advance of kind of in :-)


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -