fix bug
This commit is contained in:
parent
be1c10fb38
commit
fb92f15062
@ -277,11 +277,11 @@ public class CommonUtil {
|
||||
}
|
||||
|
||||
public static String getCustomMessageData(MethodCall methodCall) {
|
||||
return getSDKJsonParam(methodCall, KEY_CUSTOM_MESSAGE_DATA);
|
||||
return getParamValue(methodCall, KEY_CUSTOM_MESSAGE_DATA);
|
||||
}
|
||||
|
||||
public static String getCustomMessageExt(MethodCall methodCall) {
|
||||
return getSDKJsonParam(methodCall, KEY_CUSTOM_MESSAGE_EXT);
|
||||
return getParamValue(methodCall, KEY_CUSTOM_MESSAGE_EXT);
|
||||
}
|
||||
|
||||
public static String getQuoteMessageText(MethodCall methodCall) {
|
||||
|
@ -154,6 +154,7 @@ class GroupManager {
|
||||
|
||||
/// Edit group information
|
||||
Future<dynamic> setGroupInfo({
|
||||
required String groupID,
|
||||
String? groupName,
|
||||
String? notification,
|
||||
String? introduction,
|
||||
@ -163,6 +164,7 @@ class GroupManager {
|
||||
'setGroupInfo',
|
||||
_buildParam({
|
||||
'gInfo': {
|
||||
"groupID": groupID,
|
||||
"groupName": groupName,
|
||||
"notification": notification,
|
||||
"introduction": introduction,
|
||||
|
@ -335,7 +335,8 @@ class IMManager {
|
||||
|
||||
///
|
||||
Future<String?> setSelfInfo(
|
||||
{String? name,
|
||||
{required String uid,
|
||||
String? name,
|
||||
String? icon,
|
||||
int? gender,
|
||||
String? mobile,
|
||||
@ -345,6 +346,7 @@ class IMManager {
|
||||
return _channel.invokeMethod(
|
||||
'setSelfInfo',
|
||||
_buildParam({
|
||||
'uid': uid,
|
||||
'name': name,
|
||||
'icon': icon,
|
||||
'gender': gender,
|
||||
|
@ -317,8 +317,8 @@ class MessageManager {
|
||||
|
||||
///
|
||||
Future<Message> createCustomMessage({
|
||||
required Map<String, dynamic> data,
|
||||
required Map<String, dynamic> extension,
|
||||
required String data,
|
||||
required String extension,
|
||||
required String description,
|
||||
}) {
|
||||
return _channel
|
||||
|
@ -420,8 +420,8 @@ class LocationElem {
|
||||
}
|
||||
|
||||
class CustomElem {
|
||||
Uint8List? data;
|
||||
Uint8List? extension;
|
||||
String? data;
|
||||
String? extension;
|
||||
String? description;
|
||||
|
||||
CustomElem({this.data, this.extension, this.description});
|
||||
|
Loading…
x
Reference in New Issue
Block a user