UserConfigStorage

Deprecated

Use UserPrefsDAO instead. This will be removed in future versions.

Replace with

UserPrefsDAO

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Functions

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

returns a Flow of the saved App Lock status

Link copied to clipboard
abstract suspend fun appLockStatus(): AppLockConfigEntity?

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

Link copied to clipboard
abstract suspend 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
abstract suspend fun e2EINotificationTimeFlow(): <Error class: unknown class><Long?>
Link copied to clipboard
abstract fun e2EISettingsFlow(): <Error class: unknown class><E2EISettingsEntity?>

Get Flow of the saved MLSE2EISetting

Link copied to clipboard
abstract suspend fun enableMLS(enabled: Boolean)

Save flag from the user settings to enable and disable MLS

Link copied to clipboard
abstract suspend fun getE2EINotificationTime(): Long?
Link copied to clipboard
abstract suspend fun getE2EISettings(): E2EISettingsEntity?

Get MLSE2EISetting

Link copied to clipboard
abstract fun isClassifiedDomainsEnabledFlow(): <Error class: unknown class><ClassifiedDomainsEntity?>

Returns a Flow containing the status and list of classified domains

Link copied to clipboard
abstract suspend fun isConferenceCallingEnabled(): Boolean

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

Link copied to clipboard
abstract suspend fun isConferenceCallingEnabledFlow(): <Error class: unknown class><Boolean>

Get a flow of 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
abstract fun isFileSharingEnabledFlow(): <Error class: unknown class><IsFileSharingEnabledEntity?>

Returns the Flow of file sharing status

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

Get the saved flag to know if MLS enabled or not

Link copied to clipboard
abstract suspend fun isScreenshotCensoringEnabledFlow(): <Error class: unknown class><Boolean>
Link copied to clipboard
abstract suspend 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
abstract suspend 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
abstract suspend 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
abstract suspend fun persistClassifiedDomainsStatus(status: Boolean, classifiedDomains: List<String>)

Save the flag and list of trusted domains

Link copied to clipboard
abstract suspend fun persistConferenceCalling(enabled: Boolean)

Save flag from user settings to enable or disable Conference Calling

Link copied to clipboard
abstract suspend fun persistDefaultProtocol(protocol: SupportedProtocolEntity)

Save default protocol to use

Link copied to clipboard
abstract suspend fun persistFileSharingStatus(status: Boolean, isStatusChanged: Boolean?)

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

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

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

Link copied to clipboard
abstract suspend fun persistScreenshotCensoring(enabled: Boolean)
abstract suspend 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
abstract suspend fun persistTypingIndicator(enabled: Boolean)

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

Link copied to clipboard
abstract suspend fun persistUseSftForOneOnOneCalls(shouldUse: Boolean)
Link copied to clipboard
abstract suspend fun setE2EISettings(settingEntity: E2EISettingsEntity?)

Save MLSE2EISetting

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