2021-06-24 22:30:46 +00:00
|
|
|
package constants
|
|
|
|
|
|
|
|
// We offer "un-passworded" profiles but our storage encrypts everything with a password. We need an agreed upon
|
|
|
|
// password to use in that case, that the app case use behind the scenes to password and unlock with
|
2021-11-04 01:19:30 +00:00
|
|
|
// https://docs.openprivacy.ca/cwtch-security-handbook/profile_encryption_and_storage.html
|
2021-06-24 22:30:46 +00:00
|
|
|
const DefactoPasswordForUnencryptedProfiles = "be gay do crime"
|
2021-11-04 01:19:30 +00:00
|
|
|
|
|
|
|
const (
|
|
|
|
// StatusSuccess is an event response for event.Status signifying a call succeeded
|
|
|
|
StatusSuccess = "success"
|
|
|
|
// StatusError is an event response for event.Status signifying a call failed in error, ideally accompanied by a event.Error
|
|
|
|
StatusError = "error"
|
|
|
|
)
|
2022-02-04 21:25:06 +00:00
|
|
|
|
2022-02-05 00:17:39 +00:00
|
|
|
type NotificationType string
|
|
|
|
|
2022-02-04 21:25:06 +00:00
|
|
|
const (
|
|
|
|
// NotificationNone enum for message["notification"] that means no notification
|
2022-02-05 00:17:39 +00:00
|
|
|
NotificationNone = NotificationType("None")
|
2022-02-04 21:25:06 +00:00
|
|
|
// NotificationEvent enum for message["notification"] that means emit a notification that a message event happened only
|
2022-02-05 00:17:39 +00:00
|
|
|
NotificationEvent = NotificationType("SimpleEvent")
|
2022-02-04 21:25:06 +00:00
|
|
|
// NotificationConversation enum for message["notification"] that means emit a notification event with Conversation handle included
|
2022-02-05 00:17:39 +00:00
|
|
|
NotificationConversation = NotificationType("ContactInfo")
|
2022-02-04 21:25:06 +00:00
|
|
|
)
|
2022-02-08 02:12:57 +00:00
|
|
|
|
|
|
|
const (
|
|
|
|
// ConversationNotificationPolicyDefault enum for conversations indicating to use global notification policy
|
|
|
|
ConversationNotificationPolicyDefault = "ConversationNotificationPolicy.Default"
|
|
|
|
// ConversationNotificationPolicyOptIn enum for conversation indicating to opt in to nofitications when allowed
|
|
|
|
ConversationNotificationPolicyOptIn = "ConversationNotificationPolicy.OptIn"
|
|
|
|
// ConversationNotificationPolicyNever enum for conversation indicating to opt in to never do notifications
|
|
|
|
ConversationNotificationPolicyNever = "ConversationNotificationPolicy.Never"
|
|
|
|
)
|
2022-04-01 22:52:14 +00:00
|
|
|
|
|
|
|
const DartIso8601 = "2006-01-02T15:04:05.999Z"
|