parent
651e3857e1
commit
e68c46d729
|
@ -84,7 +84,7 @@ class IssueReporter: NSObject {
|
|||
|
||||
let vc = MFMailComposeViewController()
|
||||
vc.setToRecipients([AppConstants.IssueReporter.Email.recipient])
|
||||
vc.setSubject(AppConstants.IssueReporter.Email.subject(GroupConstants.App.name))
|
||||
vc.setSubject(AppConstants.IssueReporter.Email.subject)
|
||||
vc.setMessageBody(AppConstants.IssueReporter.Email.body(description ?? AppConstants.IssueReporter.Email.template, metadata), isHTML: false)
|
||||
if let raw = debugLog {
|
||||
let attachment = DebugLog(raw: raw).decoratedData()
|
||||
|
|
|
@ -210,7 +210,7 @@ class OrganizerViewController: UITableViewController, TableModelHost {
|
|||
|
||||
let vc = MFMailComposeViewController()
|
||||
vc.setToRecipients([AppConstants.Translations.Email.recipient])
|
||||
vc.setSubject(AppConstants.Translations.Email.subject(GroupConstants.App.name))
|
||||
vc.setSubject(AppConstants.Translations.Email.subject)
|
||||
vc.setMessageBody(AppConstants.Translations.Email.body(AppConstants.Translations.Email.template), isHTML: false)
|
||||
vc.mailComposeDelegate = self
|
||||
vc.apply(Theme.current)
|
||||
|
|
|
@ -112,15 +112,13 @@ public class AppConstants {
|
|||
public class Email {
|
||||
public static let recipient = "issues@\(Domain.name)"
|
||||
|
||||
public static func subject(_ appName: String) -> String {
|
||||
return "\(appName) - Report issue";
|
||||
}
|
||||
public static let subject = "\(GroupConstants.App.name) - Report issue"
|
||||
|
||||
public static func body(_ description: String, _ metadata: String) -> String {
|
||||
return "Hi,\n\n\(description)\n\n\(metadata)\n\nRegards";
|
||||
return "Hi,\n\n\(description)\n\n\(metadata)\n\nRegards"
|
||||
}
|
||||
|
||||
public static let template = "description of the issue: ";
|
||||
public static let template = "description of the issue: "
|
||||
}
|
||||
|
||||
public class Filenames {
|
||||
|
@ -147,15 +145,13 @@ public class AppConstants {
|
|||
public class Email {
|
||||
public static let recipient = "translate@\(Domain.name)"
|
||||
|
||||
public static func subject(_ appName: String) -> String {
|
||||
return "\(appName) - Translations";
|
||||
}
|
||||
public static let subject = "\(GroupConstants.App.name) - Translations"
|
||||
|
||||
public static func body(_ description: String) -> String {
|
||||
return "Hi,\n\n\(description)\n\nRegards";
|
||||
return "Hi,\n\n\(description)\n\nRegards"
|
||||
}
|
||||
|
||||
public static let template = "I offer to translate to: ";
|
||||
public static let template = "I offer to translate to: "
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue