multiuserchat

Members cannot get member list in a muc room

混江龙づ霸主 提交于 2019-12-08 05:34:01
问题 I'm using IOS XMPPFramework for our chat application and I'm creating the group and adding the selected member with the below code, and receipants succesfully joins the group. And if I query the member list of that group admins succesfully retrieve the group's members but members cannot get the same list and instead they are receiving the below error: <iq xmlns="jabber:client" from="250034370263@conference.chat.meeapps.com.tr" to="16503312600@chat.meeapps.com.tr/15323458207749806891286" id=

How to create Group in aSmack xmpp in android ?

家住魔仙堡 提交于 2019-12-08 00:13:28
问题 I am getting class cast exception while creating muc in android. E/AndroidRuntime(31002): Caused by: java.lang.ClassCastException: org.jivesoftware.smack.packet.DefaultPacketExtension E/AndroidRuntime(31002): at org.jivesoftware.smackx.muc.MultiUserChat.getMUCUserExtension(MultiUserChat.java:2000) E/AndroidRuntime(31002): at org.jivesoftware.smackx.muc.MultiUserChat.create(MultiUserChat.java:364) 回答1: You can create user Group by , public boolean createGroup(XMPPConnection connection,String

Members cannot get member list in a muc room

↘锁芯ラ 提交于 2019-12-07 08:00:33
I'm using IOS XMPPFramework for our chat application and I'm creating the group and adding the selected member with the below code, and receipants succesfully joins the group. And if I query the member list of that group admins succesfully retrieve the group's members but members cannot get the same list and instead they are receiving the below error: <iq xmlns="jabber:client" from="250034370263@conference.chat.meeapps.com.tr" to="16503312600@chat.meeapps.com.tr/15323458207749806891286" id="FF691FF5-D12B-4BAA-AB19-84E7A2B945D4" type="error"><query xmlns="http://jabber.org/protocol/muc#admin">

How to join multiple rooms by just sending one <presence> message to ejabberd server

让人想犯罪 __ 提交于 2019-12-06 12:27:09
问题 For example, I have 20 rooms to join. The simple solution is to send 20 message to each room id. Considering the performance, this is bad. I want to join the 20 rooms by just sending one <presence> message, how to achieve this? Writing a module to hook the custom <presence> message? But I do not know how to write this kind of module. 回答1: In XEP-0045 Multi User Chat, there is no way defined to join 20 chat rooms with a single presence packet. However, by combining other XMPP Extension with

How to create Group in aSmack xmpp in android ?

北城以北 提交于 2019-12-06 06:13:11
I am getting class cast exception while creating muc in android. E/AndroidRuntime(31002): Caused by: java.lang.ClassCastException: org.jivesoftware.smack.packet.DefaultPacketExtension E/AndroidRuntime(31002): at org.jivesoftware.smackx.muc.MultiUserChat.getMUCUserExtension(MultiUserChat.java:2000) E/AndroidRuntime(31002): at org.jivesoftware.smackx.muc.MultiUserChat.create(MultiUserChat.java:364) You can create user Group by , public boolean createGroup(XMPPConnection connection,String groupName) { if (connection == null) return false; try { connection.getRoster().createGroup(groupName); Log.v

How to handle MUC chat messages- messages duplicating

强颜欢笑 提交于 2019-12-05 07:08:37
问题 I have implemented one to one chat using XMPP framework It has extensive support in one to one chat. Message archiving and fetching is way simple. But i see, very difficulty in handling a group chat message saving and displaying. The sorting and predicates are failing. duplicate messages are shown. This is how i join a room before i fetch my already saved message) XMPPRoomCoreDataStorage *coreDataRoomStorage=[self appDelegate].xmppRoomCoreDataStorage; XMPPRoom *room=[[XMPPRoom alloc

how to create persistent muc room in smack 4.1 beta2

为君一笑 提交于 2019-12-05 05:29:14
问题 migrated from asmack to smack 4.1 beta2. The muc rooms created are no longer persistent. MultiUserChatManager mucm=MultiUserChatManager.getInstanceFor(connection); muc=mucm.getMultiUserChat(groupid+"@conference.localhost"); DiscussionHistory histroy=new DiscussionHistory(); histroy.setMaxStanzas(10); muc.createOrJoin(username,null,histroy,SmackConfiguration.getDefaultPacketReplyTimeout()); muc.nextMessage(); when created with gajim, the rooms are persistent. EDIT : Here is code we used

OpenFire - Permanent Group Chat using PubSub

馋奶兔 提交于 2019-12-05 00:16:51
问题 First from this question : Asmack/openfire How do I keep a user permanently in groupchat room I read that I cannot use MUC to keep the user persistent in the group, they'll automatically leave the group and can rejoin after they come online again, that concept is like IRC like what've been asked in here -> http://community.igniterealtime.org/thread/48020. Then from the stackoverflow question I read about using pubsub, then I've done some research about pubsub and what I've got is pubsub can

Get members nickname of MUC Room

被刻印的时光 ゝ 提交于 2019-12-04 11:01:06
Is there a way to get all nicknames of a MUC Room with an ejabberd server? I'm trying with: <iq from='crone1@shakespeare.lit/desktop' id='member3' to='coven@chat.shakespeare.lit' type='get'> <query xmlns='http://jabber.org/protocol/muc#admin'> <item affiliation='member'/> </query> </iq> but I obtain only jid without nicknames: <iq from='coven@chat.shakespeare.lit' id='member3' to='crone1@shakespeare.lit/desktop' type='result'> <query xmlns='http://jabber.org/protocol/muc#admin'> <item affiliation='member' jid='hag66@shakespeare.lit' role='participant'/> </query> </iq> On 6.5 Querying for Room

How to handle MUC chat messages- messages duplicating

不羁岁月 提交于 2019-12-03 21:39:16
I have implemented one to one chat using XMPP framework It has extensive support in one to one chat. Message archiving and fetching is way simple. But i see, very difficulty in handling a group chat message saving and displaying. The sorting and predicates are failing. duplicate messages are shown. This is how i join a room before i fetch my already saved message) XMPPRoomCoreDataStorage *coreDataRoomStorage=[self appDelegate].xmppRoomCoreDataStorage; XMPPRoom *room=[[XMPPRoom alloc]initWithRoomStorage:coreDataRoomStorage jid:user.bareJid]; [room activate:[self appDelegate].xmppStream]; [room