constants

package
v1.10.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const (
	// NotificationNone enum for message["notification"] that means no notification
	NotificationNone = NotificationType("None")
	// NotificationEvent enum for message["notification"] that means emit a notification that a message event happened only
	NotificationEvent = NotificationType("SimpleEvent")
	// NotificationConversation enum for message["notification"] that means emit a notification event with Conversation handle included
	NotificationConversation = NotificationType("ContactInfo")
)
View Source
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"
)
View Source
const Archived = "archived"
View Source
const BlockUnknownPeersSetting = "blockunknownpeers"

Settings

View Source
const ConversationNotificationPolicy = "notification-policy"

ConversationNotificationPolicy is the attribute label for conversations. When App NotificationPolicy is OptIn a true value here opts in

View Source
const DartIso8601 = "2006-01-02T15:04:05.999Z"
View Source
const DefactoPasswordForUnencryptedProfiles = "be gay do crime"

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 https://docs.openprivacy.ca/cwtch-security-handbook/profile_encryption_and_storage.html

View Source
const DefaultProfilePicture = "defaultPicture"
View Source
const Description = "description"

Description is used on server contacts,

View Source
const LastRead = "last-read"
View Source
const LastSeenTime = "lastMessageSeenTime"
View Source
const LocaleSetting = "locale"
View Source
const MessageFormattingExperiment = "message-formatting"

App Experiments

View Source
const Name = "name"
View Source
const PeerAutostart = "autostart"
View Source
const PeerOnline = "peer-online"

PeerOnline stores state on if the peer believes it is online

View Source
const Picture = "picture"
View Source
const ProfileTypeV1DefaultPassword = "v1-defaultPassword"
View Source
const ProfileTypeV1Password = "v1-userPassword"
View Source
const SchemaVersion = "schemaVersion"
View Source
const ShowBlocked = "show-blocked"
View Source
const StateProfilePane = "state-profile-pane"
View Source
const StateSelectedConversation = "state-selected-conversation"
View Source
const StateSelectedProfileTime = "state-selected-profile-time"
View Source
const ZoomSetting = "zoom"

Variables

This section is empty.

Functions

This section is empty.

Types

type NotificationType added in v1.6.0

type NotificationType string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL