toMessage method

  1. @override
String toMessage()
override

Implementation

@override
String toMessage() {
  switch (code) {
    case JoinChatCallErrorCode.noCall:
      return 'err_call_not_found'.l10n;
    case JoinChatCallErrorCode.unknownChat:
      return 'err_unknown_chat'.l10n;
    case JoinChatCallErrorCode.artemisUnknown:
      return 'err_unknown'.l10n;
  }
}