toMessage method
override
Implementation
@override
String toMessage() {
switch (code) {
case DeleteChatMessageErrorCode.artemisUnknown:
return 'err_unknown'.l10n;
case DeleteChatMessageErrorCode.notAuthor:
return 'err_not_author'.l10n;
case DeleteChatMessageErrorCode.quoted:
return 'err_quoted_message'.l10n;
case DeleteChatMessageErrorCode.read:
return 'err_message_was_read'.l10n;
case DeleteChatMessageErrorCode.unknownChatItem:
return 'err_unknown_chat_item'.l10n;
}
}