isTranscriptMessage function

bool isTranscriptMessage(
  1. Map<String, dynamic> entry
)

Check if an entry is a transcript message (not metadata like content-replacement).

Implementation

bool isTranscriptMessage(Map<String, dynamic> entry) {
  final type = entry['type'] as String?;
  return type != null && type != 'content-replacement';
}