【发布时间】:2016-12-27 05:22:43
【问题描述】:
我在 XMPP 聊天模块中工作。我昨天创建了组,现在我想在这个组中添加更多成员。在现有组中添加成员的过程是什么。
这是我创建组的代码:
XMPPJID *roomJID = [XMPPJID jidWithString:@"xyz@conference.abc"];
XMPPRoomMemoryStorage *roomMemoryStorage = [[XMPPRoomMemoryStorage alloc] init];
XMPPRoom *newxmppRoom = [[XMPPRoom alloc]
initWithRoomStorage:roomMemoryStorage
jid:roomJID
dispatchQueue:dispatch_get_main_queue()];
[newxmppRoom activate:xmppStream];
[newxmppRoom addDelegate:self delegateQueue:dispatch_get_main_queue()];
[newxmppRoom joinRoomUsingNickname:@"MY_NICKNAME" history:nil];
是不是每次我想在房间里添加用户时都必须写上面的代码?
【问题讨论】:
标签: ios add xmppframework chatroom invite