toMessage method
override
Implementation
@override
String toMessage() {
switch (code) {
case ForwardChatItemsErrorCode.blocked:
return 'err_blocked'.l10n;
case ForwardChatItemsErrorCode.unknownChat:
case ForwardChatItemsErrorCode.unknownUser:
case ForwardChatItemsErrorCode.unknownForwardedAttachment:
case ForwardChatItemsErrorCode.noTextAndNoAttachment:
case ForwardChatItemsErrorCode.wrongItemsCount:
case ForwardChatItemsErrorCode.unsupportedForwardedItem:
case ForwardChatItemsErrorCode.unknownAttachment:
case ForwardChatItemsErrorCode.unknownForwardedItem:
return toString();
case ForwardChatItemsErrorCode.artemisUnknown:
return 'err_unknown'.l10n;
}
}