UserConfigStorageImpl

Constructors

Link copied to clipboard
constructor(kaliumPreferences: KaliumPreferences)

Functions

Link copied to clipboard
open override fun appLockFlow(): <Error class: unknown class><AppLockConfigEntity?>

returns a Flow of the saved App Lock status

Link copied to clipboard
open override fun appLockStatus(): AppLockConfigEntity?

get the saved flag to know if App Lock is enforced or not

Link copied to clipboard
open override fun areReadReceiptsEnabled(): <Error class: unknown class><Boolean>

Get the saved flag to know whether user's Read Receipts are currently enabled or not

Link copied to clipboard

Gets default protocol to use. Defaults to PROTEUS if not default protocol has been saved.

Link copied to clipboard
open override fun e2EINotificationTimeFlow(): <Error class: unknown class><Long?>
Link copied to clipboard
open override fun e2EISettingsFlow(): <Error class: unknown class><E2EISettingsEntity?>

Get Flow of the saved MLSE2EISetting

Link copied to clipboard
open override fun enableMLS(enabled: Boolean)

Save flag from the user settings to enable and disable MLS

Link copied to clipboard
open override fun getE2EINotificationTime(): Long?
Link copied to clipboard
open override fun getE2EISettings(): E2EISettingsEntity?

Get MLSE2EISetting

Link copied to clipboard
open override fun isClassifiedDomainsEnabledFlow(): <Error class: unknown class><ClassifiedDomainsEntity>

Returns a Flow containing the status and list of classified domains

Link copied to clipboard
open override fun isConferenceCallingEnabled(): Boolean

Get the saved flag to know if Conference Calling is enabled or not

Link copied to clipboard

Get the saved flag that been saved to know if the file sharing is enabled or not with the flag to know if there was a status change

Link copied to clipboard
open override fun isFileSharingEnabledFlow(): <Error class: unknown class><IsFileSharingEnabledEntity?>

Returns the Flow of file sharing status

Link copied to clipboard
Link copied to clipboard
open override fun isGuestRoomLinkEnabledFlow(): <Error class: unknown class><IsGuestRoomLinkEnabledEntity?>
Link copied to clipboard
open override fun isMLSEnabled(): Boolean

Get the saved flag to know if MLS enabled or not

Link copied to clipboard
open override fun isScreenshotCensoringEnabledFlow(): <Error class: unknown class><Boolean>
Link copied to clipboard
open override fun isSecondFactorPasswordChallengeRequired(): Boolean

Checks if the 2FA challenge is required for some operations such as: Login, Create Account, Register Client, etc.

Link copied to clipboard
open override fun isTypingIndicatorEnabled(): <Error class: unknown class><Boolean>

Get the saved global flag to know whether user's typing indicator is currently enabled or not.

Link copied to clipboard
open override fun persistAppLockStatus(isEnforced: Boolean, inactivityTimeoutSecs: <Error class: unknown class>, isStatusChanged: Boolean?)

save flag from the user settings to enforce and disable App Lock

Link copied to clipboard
open override fun persistClassifiedDomainsStatus(status: Boolean, classifiedDomains: List<String>)

Save the flag and list of trusted domains

Link copied to clipboard
open override fun persistConferenceCalling(enabled: Boolean)

Save flag from user settings to enable or disable Conference Calling

Link copied to clipboard
open override fun persistDefaultProtocol(protocol: SupportedProtocolEntity)

Save default protocol to use

Link copied to clipboard
open override fun persistFileSharingStatus(status: Boolean, isStatusChanged: Boolean?)

Save flag from the file sharing api, and if the status changes

Link copied to clipboard
open override fun persistGuestRoomLinkFeatureFlag(status: Boolean, isStatusChanged: Boolean?)
Link copied to clipboard
open override fun persistReadReceipts(enabled: Boolean)

Persist the flag to indicate if user's Read Receipts are enabled or not.

Link copied to clipboard
open override fun persistScreenshotCensoring(enabled: Boolean)
open override fun persistSecondFactorPasswordChallengeStatus(isRequired: Boolean)

Saves the flag that indicates whether a 2FA challenge is required for some operations such as: Login, Create Account, Register Client, etc.

Link copied to clipboard
open override fun persistTypingIndicator(enabled: Boolean)

Persist the flag to indicate whether user's typing indicator global flag is enabled or not.

Link copied to clipboard
open override fun persistUseSftForOneOnOneCalls(shouldUse: Boolean)
Link copied to clipboard
open override fun setE2EISettings(settingEntity: E2EISettingsEntity?)

Save MLSE2EISetting

Link copied to clipboard
open override fun setFileSharingAsNotified()
Link copied to clipboard
open override fun setIfAbsentE2EINotificationTime(timeStamp: Long)
Link copied to clipboard
open override fun setTeamAppLockAsNotified()
Link copied to clipboard
open override fun shouldUseSftForOneOnOneCalls(): Boolean
Link copied to clipboard
open override fun updateE2EINotificationTime(timeStamp: Long)