PR remarks

This commit is contained in:
ariskotsomitopoulos 2022-03-22 13:57:20 +02:00
parent a431d885f0
commit c6593f0cee
2 changed files with 5 additions and 5 deletions

View File

@ -24,13 +24,13 @@ import javax.inject.Inject
/**
* The purpose of this class is to provide an alternative and lightweight way to store settings/data
* on the sdi without using the database. This should be used just for sdk/user preferences and
* on the sdk without using the database. This should be used just for sdk/user preferences and
* not for large data sets
*/
class LightweightSettingsStorage @Inject constructor(
context: Context,
val matrixConfiguration: MatrixConfiguration
private val matrixConfiguration: MatrixConfiguration
) {
private val sdkDefaultPrefs = PreferenceManager.getDefaultSharedPreferences(context.applicationContext)

View File

@ -90,7 +90,7 @@ import javax.inject.Inject
data class HomeActivityArgs(
val clearNotification: Boolean,
val accountCreation: Boolean,
val existingSession: Boolean = false,
val hasExistingSession: Boolean = false,
val inviteNotificationRoomId: String? = null
) : Parcelable
@ -280,7 +280,7 @@ class HomeActivity :
if (checkSession) {
// We should check session to ensure we will only clear cache if needed
val args = intent.getParcelableExtra<HomeActivityArgs>(Mavericks.KEY_ARG)
if (args?.existingSession == true) {
if (args?.hasExistingSession == true) {
// existingSession --> Will be true only if we came from an existing active session
Timber.i("----> Migrating threads from an existing session..")
handleThreadsMigration()
@ -597,7 +597,7 @@ class HomeActivity :
val args = HomeActivityArgs(
clearNotification = clearNotification,
accountCreation = accountCreation,
existingSession = existingSession,
hasExistingSession = existingSession,
inviteNotificationRoomId = inviteNotificationRoomId
)