hrxiang 4 years ago
parent 239b0893d5
commit 91f40333dc
  1. 5
      CHANGELOG.md
  2. 2
      README.md
  3. 2
      example/pubspec.lock
  4. 1
      lib/src/listener/advanced_msg_listener.dart
  5. 9
      lib/src/listener/impl/friendship_listener.dart
  6. 1
      lib/src/listener/impl/msg_send_progress_listener.dart
  7. 3
      lib/src/manager/im_message_manager.dart
  8. 1
      lib/src/models/conversation_info.dart
  9. 6
      lib/src/models/message.dart
  10. 2
      pubspec.yaml

@ -1,3 +1,6 @@
## 0.0.9+1
Fix bug
## 0.0.9
Add ios support
@ -14,7 +17,7 @@ Fix bug
## 0.0.5
Upgrade sdk </br>
fix message error bug
Fix message error bug
## 0.0.4

@ -19,7 +19,7 @@ A flutter IM plugin for android and ios.
#### 1,Add dependency in yaml
flutter_openim_sdk: ^0.0.9
flutter_openim_sdk: ^0.0.9+1
#### 2,Import package

@ -68,7 +68,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.0.8+1"
version: "0.0.9"
flutter_test:
dependency: "direct dev"
description: flutter

@ -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;

@ -50,8 +50,7 @@ class MessageManager {
'receiver': userID ?? '',
'groupID': groupID ?? '',
'onlineUserOnly': onlineUserOnly,
}))
/*.then((value) => _toObj(value))*/;
})) /*.then((value) => _toObj(value))*/;
}
/// Find all history message

@ -4,6 +4,7 @@ import 'package:flutter_openim_sdk/flutter_openim_sdk.dart';
class ConversationInfo {
String conversationID;
/// [ConversationType]
int? conversationType;
String? userID;

@ -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'];

@ -1,6 +1,6 @@
name: flutter_openim_sdk
description: An instant messaging plug-in that supports Android and IOS. And the server is also all open source.
version: 0.0.9
version: 0.0.9+1
homepage: https://www.rentsoft.cn
repository: https://github.com/OpenIMSDK/Open-IM-SDK-Flutter

Loading…
Cancel
Save