Browse SDKs · HarmonyOS
Platform
SDKsHarmonyOSEnterprise

Check group member data synchronization

Verify whether local member roster data for a specific group has completed full synchronization.

Copy

Check whether member records for a specific group are fully synchronized in local storage:

Code example

import sdk, { CheckGroupMemberFullSyncReq, CheckGroupMemberFullSyncResp } from '@openimsdk/imsdk';

const request: CheckGroupMemberFullSyncReq = { groupID: groupID };
const response: CheckGroupMemberFullSyncResp = await sdk.checkGroupMemberFullSync(request);
if (!response.IsFullSync) {
  showMemberSyncingState();
}

Parameters

ParameterTypeRequiredDescription
groupIDstringYesTarget group identifier.

Return value

Returns a Promise that resolves to a CheckGroupMemberFullSyncResp object:

PropertyTypeDescription
IsFullSyncbooleantrue indicates all group members are fully synchronized locally; false indicates sync is in progress.

State changes after the call

This method does not return member records or trigger synchronization. To load the group roster and track real-time member events, see Paginate group members.