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