屏蔽群消息
屏蔽群消息,不是群主的情况下,总是失败,即总是弹出“屏蔽群消息失败”的toast,请问怎么解决啊?
new Thread(new Runnable() {
public void run() {
try {
EMGroupManager.getInstance().blockGroupMessage(imId);
runOnUiThread(new Runnable() {
public void run() {
reminderTextView.setText("屏蔽群消息"); } });
} catch (EaseMobException e) {
e.printStackTrace(); runOnUiThread(new Runnable() { public void run() { Utils.shortToastShow(GroupDataActivity.this, "屏蔽群消息失败");
} });
} } }).start();
new Thread(new Runnable() {
public void run() {
try {
EMGroupManager.getInstance().blockGroupMessage(imId);
runOnUiThread(new Runnable() {
public void run() {
reminderTextView.setText("屏蔽群消息"); } });
} catch (EaseMobException e) {
e.printStackTrace(); runOnUiThread(new Runnable() { public void run() { Utils.shortToastShow(GroupDataActivity.this, "屏蔽群消息失败");
} });
} } }).start();
没有找到相关结果
已邀请:
1 个回复
Wxin