getNickName method

String getNickName()

Implementation

String getNickName() {
  String name = nimMessage.fromNickname ?? nimMessage.fromAccount ?? '';
  if (name.isEmpty && fromUser != null) {
    name = fromUser!.nick ?? '';
  }
  return name;
}