blockGroupMessage method
屏蔽群消息(还是群里面的成员,但不再接收群消息)
Implementation
void blockGroupMessage({
final String groupId,
onSuccess(),
onError(int errorCode, String desc)}){
Future<Map<String, dynamic>> result = _emGroupManagerChannel
.invokeMethod(EMSDKMethod.blockGroupMessage, {"groupId" : groupId});
result.then((response){
if (response['success']) {
if (onSuccess != null) {
onSuccess();
}
} else {
if (onError != null) onError(response['code'], response['desc']);
}
});
}