UserPrefsDAO

internal class UserPrefsDAO(metadataDAO: MetadataDAO) : UserConfigStorage

Constructors

Link copied to clipboard
constructor(metadataDAO: MetadataDAO)

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 suspend override fun appLockStatus(): AppLockConfigEntity?

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

Link copied to clipboard
open suspend 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
open suspend override fun defaultProtocol(): SupportedProtocolEntity

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

Link copied to clipboard
open suspend 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 suspend override fun enableMLS(enabled: Boolean)

Save flag from the user settings to enable and disable MLS

Link copied to clipboard
open suspend override fun getE2EINotificationTime(): Long?
Link copied to clipboard
open suspend 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 suspend override fun isConferenceCallingEnabled(): Boolean

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

Link copied to clipboard
open suspend override 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
open suspend override fun isFileSharingEnabled(): IsFileSharingEnabledEntity?

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 suspend override fun isMLSEnabled(): Boolean

Get the saved flag to know if MLS enabled or not

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

Save the flag and list of trusted domains

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

Save flag from user settings to enable or disable Conference Calling

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

Save default protocol to use

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

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

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

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

Link copied to clipboard
open suspend override fun persistScreenshotCensoring(enabled: Boolean)
open suspend 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 suspend 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 suspend override fun persistUseSftForOneOnOneCalls(shouldUse: Boolean)
Link copied to clipboard
open suspend override fun setE2EISettings(settingEntity: E2EISettingsEntity?)

Save MLSE2EISetting

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