fix: 'unsubscribeUsersStatus'

main
Brett 1 year ago
parent ceba9e827f
commit 2cafa6bab8
  1. 4
      lib/src/enum/message_type.dart
  2. 16
      lib/src/manager/im_user_manager.dart

@ -152,10 +152,10 @@ class MessageType {
static const groupMemberSetToOrdinaryUserNotification = 1518; static const groupMemberSetToOrdinaryUserNotification = 1518;
/// Group Notice Changed /// Group Notice Changed
static const groupNoticeChangedNotification = 1519; static const groupInfoSetAnnouncementNotification = 1519;
/// Group Name Changed /// Group Name Changed
static const groupNameChangedNotification = 1520; static const groupInfoSetNameNotification = 1520;
/// Burn After Reading /// Burn After Reading
static const burnAfterReadingNotification = 1701; static const burnAfterReadingNotification = 1701;

@ -77,18 +77,16 @@ class UserManager {
.then((value) => Utils.toList(value, (map) => UserStatusInfo.fromJson(map))); .then((value) => Utils.toList(value, (map) => UserStatusInfo.fromJson(map)));
} }
Future<List<UserStatusInfo>> unsubscribeUsersStatus( Future unsubscribeUsersStatus(
List<String> userIDs, { List<String> userIDs, {
String? operationID, String? operationID,
}) { }) {
return _channel return _channel.invokeMethod(
.invokeMethod( 'unsubscribeUsersStatus',
'unsubscribeUsersStatus', _buildParam({
_buildParam({ 'userIDs': userIDs,
'userIDs': userIDs, 'operationID': Utils.checkOperationID(operationID),
'operationID': Utils.checkOperationID(operationID), }));
}))
.then((value) => Utils.toList(value, (map) => UserStatusInfo.fromJson(map)));
} }
Future<List<UserStatusInfo>> getSubscribeUsersStatus({ Future<List<UserStatusInfo>> getSubscribeUsersStatus({

Loading…
Cancel
Save