set method

void set(
  1. Chat chat
)

Implementation

void set(Chat chat) {
  this.chat = chat;
  parentMessage?.set(chat);
  _sender?.set(chat);

  for (final element in _mentionedUsers) {
    element.set(chat);
  }

  final users = threadInfo?.mostRepliesUsers;
  if (users != null) {
    for (final element in users) {
      element.set(chat);
    }
  }
}