isSystemStyleCustomMessage static method
Implementation
static bool isSystemStyleCustomMessage(MessageInfo message, BuildContext context) {
if (message.messageType == MessageType.custom) {
try {
final customMessage = message.messageBody?.customMessage?.data;
final customInfo = ChatUtil.jsonData2Dictionary(customMessage);
if (customInfo != null) {
if (customInfo['businessID'] == 'group_create') {
return true;
}
final callingProvider = CallingMessageDataProvider(message, context);
if (callingProvider.isCallingSignal && callingProvider.participantType == CallParticipantType.group) {
return true;
}
}
} catch (e) {
debugPrint('isSystemStyleCustomMessage error: $e');
}
}
return false;
}