fetchJoinedGroupCount method
Gets the number of groups joined by the current user from the server.
Returns The count of joined groups.
Throws Exception description, see ChatError.
Implementation
Future<int> fetchJoinedGroupCount() async {
try {
Map result = await platform_interface.Client.instance.groupManager
.callNativeMethod(ChatMethodKeys.fetchJoinedGroupCount);
ChatError.hasErrorFromResult(result);
int count = result[ChatMethodKeys.fetchJoinedGroupCount];
return count;
} catch (e) {
rethrow;
}
}