mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-12 07:37:42 +00:00
Merge branch 'dev' into on
This commit is contained in:
@@ -31,8 +31,8 @@ configurations.all {
|
||||
exclude module: "commons-logging"
|
||||
}
|
||||
|
||||
def canonicalVersionCode = 360
|
||||
def canonicalVersionName = "1.17.5"
|
||||
def canonicalVersionCode = 369
|
||||
def canonicalVersionName = "1.18.1"
|
||||
|
||||
def postFixSize = 10
|
||||
def abiPostFix = ['armeabi-v7a' : 1,
|
||||
|
@@ -182,7 +182,7 @@ open class Storage(
|
||||
}
|
||||
|
||||
override fun getUserProfile(): Profile {
|
||||
val displayName = TextSecurePreferences.getProfileName(context)!!
|
||||
val displayName = TextSecurePreferences.getProfileName(context)
|
||||
val profileKey = ProfileKeyUtil.getProfileKey(context)
|
||||
val profilePictureUrl = TextSecurePreferences.getProfilePictureURL(context)
|
||||
return Profile(displayName, profileKey, profilePictureUrl)
|
||||
|
@@ -53,6 +53,7 @@ class DisappearingMessagesViewModelTest {
|
||||
@Mock lateinit var application: Application
|
||||
@Mock lateinit var textSecurePreferences: TextSecurePreferences
|
||||
@Mock lateinit var messageExpirationManager: SSKEnvironment.MessageExpirationManagerProtocol
|
||||
@Mock lateinit var disappearingMessages: DisappearingMessages
|
||||
@Mock lateinit var threadDb: ThreadDatabase
|
||||
@Mock lateinit var groupDb: GroupDatabase
|
||||
@Mock lateinit var storage: Storage
|
||||
@@ -114,9 +115,9 @@ class DisappearingMessagesViewModelTest {
|
||||
isSelfAdmin = true,
|
||||
address = LOCAL_ADDRESS,
|
||||
isNoteToSelf = true,
|
||||
expiryMode = ExpiryMode.NONE,
|
||||
expiryMode = ExpiryMode.Legacy(0),
|
||||
isNewConfigEnabled = false,
|
||||
persistedMode = ExpiryMode.NONE,
|
||||
persistedMode = ExpiryMode.Legacy(0),
|
||||
showDebugOptions = false
|
||||
)
|
||||
)
|
||||
@@ -127,7 +128,7 @@ class DisappearingMessagesViewModelTest {
|
||||
UiState(
|
||||
OptionsCard(
|
||||
R.string.activity_disappearing_messages_timer,
|
||||
typeOption(ExpiryMode.NONE, selected = true),
|
||||
typeOption(ExpiryMode.NONE, selected = false),
|
||||
timeOption(ExpiryType.LEGACY, 12.hours),
|
||||
timeOption(ExpiryType.LEGACY, 1.days),
|
||||
timeOption(ExpiryType.LEGACY, 7.days),
|
||||
@@ -555,6 +556,7 @@ class DisappearingMessagesViewModelTest {
|
||||
application,
|
||||
textSecurePreferences,
|
||||
messageExpirationManager,
|
||||
disappearingMessages,
|
||||
threadDb,
|
||||
groupDb,
|
||||
storage,
|
||||
|
Reference in New Issue
Block a user