removeGroupProfileImage static method
Future<void>
removeGroupProfileImage({
- required String jid,
- required dynamic flyCallBack(
- FlyResponse response
Removes the profile image of a group.
This method asynchronously removes the profile image of a specified group on the Mirrorfly platform.
The jid
parameter specifies the unique identifier of the group whose profile image is to be removed.
Upon completion, the provided callback function flyCallBack
is invoked with a FlyResponse object,
which contains information about the success or failure of the operation.
Parameters:
jid
- The JID of the group whose profile image is to be removed.
Example usage:
await Mirrorfly.removeGroupProfileImage(
jid: "group jid",
flyCallBack: (response) {
if (response.isSuccess) {
print("Group profile image removed successfully");
} else {
print("Failed to remove group profile image");
}
},
);
Implementation
static Future<void> removeGroupProfileImage(
{required String jid,
required Function(FlyResponse response) flyCallBack}) {
return FlyChatFlutterPlatform.instance
.removeGroupProfileImage(jid, flyCallBack);
}