Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
skhanna #1
Member since Jul 2016 · 73 posts · Location: Indore
Group memberships: Members
Show profile · Link to this post
Subject: Receive history message after rejoin
Hi Alex,

I am getting issue when user rejoin the room. Case is that, We have three user A,B, C in room. Now I delete user A from room then I send some message M1, M2 and M3 to room. That messages did not receive to user A. That is fine because user A is not a member of room Now I send  room invitation to user A. User A receive the invitation but it also receive last message (M3) of room. On that period he was not the member of room. So why he receive the M3 message.

I am using below code for Invite user in room.

muc.Invite(roomMemberJids, roomJid, reason);

Thanks,
Sanjeev Khanna
Avatar
Alex #2
Member since Feb 2003 · 4296 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
When a user joins a room he can request the history with man different options. Please study the MUC Xep here :
http://www.xmpp.org/extensions/xep-0045.html#enter-history

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: MatriX RSS