forked from cwtch.im/cwtch
Better Comments on History Keys
This commit is contained in:
parent
066ed86598
commit
e1877d69b7
|
@ -327,18 +327,20 @@ const (
|
||||||
ContextSendFile = "im.cwtch.file.send.chunk"
|
ContextSendFile = "im.cwtch.file.send.chunk"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Define Default Attribute Keys
|
// Define Attribute Keys related to history preservation
|
||||||
const (
|
const (
|
||||||
SaveHistoryDefaultKey = "SaveHistoryDefault" // profile level default
|
SaveHistoryDefaultKey = "SaveHistoryDefault" // profile level default
|
||||||
SaveHistoryKey = "SavePeerHistory"
|
SaveHistoryKey = "SavePeerHistory"
|
||||||
|
DeleteHistoryDefault = "DefaultDeleteHistory" // used at both profile and contact level.
|
||||||
)
|
)
|
||||||
|
|
||||||
// Define Default Attribute Values
|
// Define Default Attribute Values
|
||||||
const (
|
const (
|
||||||
// Save History has 3 distinct states. By default we don't save history (DefaultDeleteHistory), if the peer confirms this
|
// Save History has 3 distinct states. By default we refer to the profile level
|
||||||
// we change to DeleteHistoryConfirmed, if they confirm they want to save then this becomes SaveHistoryConfirmed
|
// attribute SaveHistoryDefaultKey ( default: unset i.e. DefaultDeleteHistory),
|
||||||
// We use this distinction between default and confirmed to drive UI
|
// For each contact, if the profile owner confirms this we change to DeleteHistoryConfirmed,
|
||||||
DeleteHistoryDefault = "DefaultDeleteHistory"
|
// if the profile owner confirms they want to save history then this becomes SaveHistoryConfirmed
|
||||||
|
// These settings are set at the UI level usig SetScopeZoneAttribute local.profile.*
|
||||||
SaveHistoryConfirmed = "SaveHistory"
|
SaveHistoryConfirmed = "SaveHistory"
|
||||||
DeleteHistoryConfirmed = "DeleteHistoryConfirmed"
|
DeleteHistoryConfirmed = "DeleteHistoryConfirmed"
|
||||||
SaveHistoryDefault = "DefaultSaveHistory"
|
SaveHistoryDefault = "DefaultSaveHistory"
|
||||||
|
|
Loading…
Reference in New Issue