如题,服务端使用python sdk
def add_member(conversationId, uid):
con = leancloud.Query('Conversation').equal_to('objectId', conversationId).find()[0]
con.add('m', str(uid)).save()
def delete_member(conversationId, uid):
con = leancloud.Query('Conversation').equal_to('objectId', conversationId).find()[0]
con.remove('m', str(uid)).save()
客户端在删除成员时能收到
@Override
public void onMemberLeft(AVIMClient client, AVIMConversation conversation, List members,
String kickedBy) {
}
@Override
public void onKicked(AVIMClient client, AVIMConversation conversation, String kickedBy) {
// 当前 ClientId(Bob) 被踢出对话,执行此处逻辑
}
但是加入时收不到
@Override
public void onMemberJoined(AVIMClient client, AVIMConversation conversation,
List members, String invitedBy) {
// 手机屏幕上会显示一小段文字:Tom 加入到 551260efe4b01608686c3e0f ;操作者为:Tom
Toast.makeText(AVOSCloud.applicationContext,
members + "加入到" + conversation.getConversationId() + ";操作者为: "
+ invitedBy, Toast.LENGTH_SHORT).show();
}
请问问题可能出现在哪里?