isGroupCallingMessage static method

dynamic isGroupCallingMessage(
  1. V2TimMessage message
)

Implementation

static isGroupCallingMessage(V2TimMessage message) {
  final isGroup = message.groupID != null;
  final isCustomMessage =
      message.elemType == MessageElemType.V2TIM_ELEM_TYPE_CUSTOM;
  if (isCustomMessage) {
    final customElemData = message.customElem?.data ?? "";
    return isCallingData(customElemData) && isGroup;
  }
  return false;
}