[Fix]
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
class MessageStatus{
|
||||
class MessageStatus {
|
||||
static const sending = 1;
|
||||
static const succeeded = 2;
|
||||
static const failed = 3;
|
||||
static const deleted = 4;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import 'package:flutter_openim_sdk/flutter_openim_sdk.dart';
|
||||
|
||||
|
||||
abstract class AdvancedMsgListener {
|
||||
/// Uniquely identifies
|
||||
final String id;
|
||||
|
||||
@@ -35,7 +35,8 @@ class OnFriendshipListener extends FriendshipListener {
|
||||
|
||||
@override
|
||||
void friendApplicationListAccept(UserInfo u) {
|
||||
if (null != onFriendApplicationListAccept) onFriendApplicationListAccept!(u);
|
||||
if (null != onFriendApplicationListAccept)
|
||||
onFriendApplicationListAccept!(u);
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -45,12 +46,14 @@ class OnFriendshipListener extends FriendshipListener {
|
||||
|
||||
@override
|
||||
void friendApplicationListDeleted(UserInfo u) {
|
||||
if (null != onFriendApplicationListDeleted) onFriendApplicationListDeleted!(u);
|
||||
if (null != onFriendApplicationListDeleted)
|
||||
onFriendApplicationListDeleted!(u);
|
||||
}
|
||||
|
||||
@override
|
||||
void friendApplicationListReject(UserInfo u) {
|
||||
if (null != onFriendApplicationListReject) onFriendApplicationListReject!(u);
|
||||
if (null != onFriendApplicationListReject)
|
||||
onFriendApplicationListReject!(u);
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import 'package:flutter_openim_sdk/flutter_openim_sdk.dart';
|
||||
|
||||
|
||||
class OnMsgSendProgressListener extends MsgSendProgressListener {
|
||||
Function(String msgID, int progress)? onProgress;
|
||||
|
||||
|
||||
@@ -44,14 +44,13 @@ class MessageManager {
|
||||
bool onlineUserOnly = false,
|
||||
}) {
|
||||
return _channel.invokeMethod(
|
||||
'sendMessage',
|
||||
_buildParam({
|
||||
'message': message.toJson(),
|
||||
'receiver': userID ?? '',
|
||||
'groupID': groupID ?? '',
|
||||
'onlineUserOnly': onlineUserOnly,
|
||||
}))
|
||||
/*.then((value) => _toObj(value))*/;
|
||||
'sendMessage',
|
||||
_buildParam({
|
||||
'message': message.toJson(),
|
||||
'receiver': userID ?? '',
|
||||
'groupID': groupID ?? '',
|
||||
'onlineUserOnly': onlineUserOnly,
|
||||
})) /*.then((value) => _toObj(value))*/;
|
||||
}
|
||||
|
||||
/// Find all history message
|
||||
|
||||
@@ -4,4 +4,4 @@
|
||||
// MethodChannel _channel;
|
||||
//
|
||||
// OfflinePushManager(this._channel);
|
||||
// }
|
||||
// }
|
||||
|
||||
@@ -4,6 +4,7 @@ import 'package:flutter_openim_sdk/flutter_openim_sdk.dart';
|
||||
|
||||
class ConversationInfo {
|
||||
String conversationID;
|
||||
|
||||
/// [ConversationType]
|
||||
int? conversationType;
|
||||
String? userID;
|
||||
|
||||
@@ -18,7 +18,7 @@ class GroupInfo {
|
||||
this.createTime,
|
||||
this.memberCount});
|
||||
|
||||
GroupInfo.fromJson(Map<String, dynamic> json): groupID = json['groupID'] {
|
||||
GroupInfo.fromJson(Map<String, dynamic> json) : groupID = json['groupID'] {
|
||||
/*groupID = json['groupID'];*/
|
||||
groupName = json['groupName'];
|
||||
notification = json['notification'];
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
class Message {
|
||||
String? clientMsgID;
|
||||
String? serverMsgID;
|
||||
@@ -69,8 +67,8 @@ class Message {
|
||||
this.mergeElem,
|
||||
});
|
||||
|
||||
Message.fromJson(Map<String, dynamic> json)
|
||||
/* : clientMsgID = json['clientMsgID']*/ {
|
||||
Message.fromJson(
|
||||
Map<String, dynamic> json) /* : clientMsgID = json['clientMsgID']*/ {
|
||||
clientMsgID = json['clientMsgID'];
|
||||
serverMsgID = json['serverMsgID'];
|
||||
createTime = json['createTime'];
|
||||
|
||||
Reference in New Issue
Block a user