/**
*
* This method is used :通知群聊名称变化
* @author tianwei
* @version
* 4.0 2014-9-5 上午10:50:39
*/
public static void notifyMembersMucNameChanged(String mJid, String roomJid,
String newName) {
List<GroupChatContactBean> list = DBService.get()
.queryGroupChatContactListByGroupJid(roomJid);
try {
for (GroupChatContactBean gccb : list) {
if (!Utils.isStrEmpty(gccb.contactJid)
&& gccb.contactJid.equals(mJid))
continue;
JSONObject jsonObject = new JSONObject();
jsonObject.put("roomJid", roomJid);
jsonObject.put("new_name", newName);
sendChatMessage(gccb.contactJid,
UipApplication.NAME_CHANGED_GROUPCHAT_MESSAGE_FLAG
+ jsonObject.toString());
}
} catch (Exception e) {
e.printStackTrace();
}
}
时间: 2024-11-07 12:53:18