@@ -407,7 +407,7 @@ class EMChatRoomEventHandler {
407407 String ? roomName,
408408 String ? participant,
409409 )? onRemovedFromChatRoom;
410-
410+
411411 /// Occurs when the chat room specifications changes. All chat room members receive this event.
412412 final void Function (EMChatRoom room)? onSpecificationChanged;
413413
@@ -818,6 +818,17 @@ class EMGroupEventHandler {
818818 EMGroupSharedFile sharedFile,
819819 )? onSharedFileAddedFromGroup;
820820
821+ /// Occurs when the group detail information is updated.
822+ final void Function (
823+ EMGroup group,
824+ )? onSpecificationDidUpdate;
825+
826+ /// Occurs when the group is enabled or disabled.
827+ final void Function (
828+ String groupId,
829+ bool isDisable,
830+ )? onDisableChanged;
831+
821832 ///
822833 /// Occurs when a shared file is removed from a group.
823834 ///
@@ -881,6 +892,10 @@ class EMGroupEventHandler {
881892 ///
882893 /// Param [onUserRemovedFromGroup] Current user is removed from the group by the group admin callback.
883894 ///
895+ /// Param [onSpecificationDidUpdate] Occurs when the group detail information is updated.
896+ ///
897+ /// Param [onDisableChanged] /// Occurs when the group is enabled or disabled.
898+ ///
884899 EMGroupEventHandler ({
885900 this .onAdminAddedFromGroup,
886901 this .onAdminRemovedFromGroup,
@@ -904,6 +919,8 @@ class EMGroupEventHandler {
904919 this .onSharedFileAddedFromGroup,
905920 this .onSharedFileDeletedFromGroup,
906921 this .onUserRemovedFromGroup,
922+ this .onSpecificationDidUpdate,
923+ this .onDisableChanged,
907924 });
908925}
909926
0 commit comments