By following the implementation below, you can retrieve the total number of a user's unread messages in all joined group channels.
SBDMain::GetTotalUnreadMessageCount(SBDGroupChannelTotalUnreadMessageCountParams(), [](int total_unread_message_count, SBDError* error) {
if (error != nullptr) {
// Handle error.
return;
}
});