getInRoomMessages method

List<ZegoInRoomMessage> getInRoomMessages({
  1. ZegoInRoomMessageType type = ZegoInRoomMessageType.broadcastMessage,
})

get history messages

Implementation

List<ZegoInRoomMessage> getInRoomMessages({
  ZegoInRoomMessageType type = ZegoInRoomMessageType.broadcastMessage,
}) {
  return type == ZegoInRoomMessageType.broadcastMessage
      ? ZegoUIKitCore.shared.coreData.broadcastMessage.messageList
      : ZegoUIKitCore.shared.coreData.barrageMessage.messageList;
}