Notify the group chat name change to notify the group name change

Source: Internet
Author: User

Notify the group chat name change to notify the group name change
/**
*
* This method is used: Notify the group chat name to change
* @ Author tianwei
* @ Version
* 4.0 10:50:39
*/
Public static void policymembersmucnamechanged (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 ();
}


}
You can help me get a group name for the QQ group chat and unify the group name with the announcement and members.

TO:
I'm a sleepwalking, so I'm glad to answer your question. (Group,

If you think that my answer suits your mind, please add the score to me! Thank you very much.

Wow,

---- Gorgeous coda split line ----------------

Answer:

1: group name: Time in the gap

2: Announcement: This is complicated.

3: Member: MISS ,**

Huadu ,**

,**

Weeping ,**

I have answered your question on the other 1 .!!

Hope to have a group for you

Chat group name

Group Name: ◆ ◇'s smile
Group announcement:
Attention to the sponge members! The group owner hereby announces: (if you want to say anything, you can say anything)
Group member name:
◆ ◇ XX quail eggs
◆ ◇ XX quail eggs
◆ ◇ XX quail eggs
◆ ◇ XX quail eggs
◆ ◇ XX quail eggs
······

So proceed. Always unique.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.