Mesibo Group Management - Group Operations

Estimated reading time: 1 minute

Get Group Settings and Permissions

You can get group settings, permissions and PINs (only if admin) getSettings API of the group profile. When you call getSettings API, Mesibo_onGroupSettings callback function in the listener will be called with settings, permissions and PINs. If you are not a member, Mesibo_onGroupError callback function in the listener will be called with an error code.

void getSettings(GroupListener listener);

getSettings takes the following parameters:

Parameter Description
listener Group listener instance which will be called when group settings are retrived. Note that, if you are using Javascript, you can pass listener or a callback function. For all other platforms, it is the listener.

Delete Group

You can delete the group by calling deleteGroup API of the group profile. You need to have the necessary admin permissions to delete a group.

void deleteGroup();

deleteGroup does not take any parameters.

Leave Group

Group members can leave the group by calling leave API of the group profile.

void leave();

leave does not take any parameters.

Get Admin for the last admin action

You can get the admin who has performed the last admin action like modifying the group, adding/removing members, etc. by calling getLastAdmin API of the group profile. You can call getLastAdmin API from any listener function to know who initiated the action.

MesiboProfile getLastAdmin();

getLastAdmin does not take any parameters.

group messaging, api