identity in config to allow save from everywhere

This commit is contained in:
ycc
2023-01-08 22:57:17 +01:00
parent 5ac92ce3a8
commit 61958593a1
3 changed files with 18 additions and 8 deletions

View File

@ -11,6 +11,7 @@ type Config struct {
SavePassword bool `json:"save_password,omitempty"`
SavedPassword string `json:"saved_password,omitempty"`
// Technical
IdentityFile string `json:"identity_file,omitempty"`
StoragePath string `json:"storage_path,omitempty"`
MaxIdsPerUser int `json:"max_ids_per_user,omitempty"`
MsgDbRollingPeriod int `json:"msg_db_rolling_period,omitempty"`
@ -29,10 +30,10 @@ type Config struct {
PrivateChatNotifiactions bool `json:"private_chat_notifiactions,omitempty"`
GroupChatNotifiactions bool `json:"group_chat_notifiactions,omitempty"`
ChannelNotifications bool `json:"channel_notifications,omitempty"`
// Inner
memoryPassword string
additionalPasswords []string
identityFile string
me *Identity
}