inflateMessage method

void inflateMessage(
  1. MessageModel message
)

Implementation

void inflateMessage(MessageModel message) {
  int pellet = (message.createdAt / (timePellet * 1000)).truncate();
  if (!pelletShow.contains(pellet)) {
    pelletShow.add(pellet);
    message.showCreatedTime = true;
  } else {
    message.showCreatedTime = false;
  }
}