mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-11 15:07:46 +00:00
Merge branch 'dev' into on
This commit is contained in:
@@ -10,7 +10,7 @@ data class ExpirationConfiguration(
|
||||
val isEnabled = expiryMode.expirySeconds > 0
|
||||
|
||||
companion object {
|
||||
val isNewConfigEnabled = true /* TODO: System.currentTimeMillis() > 1_676_851_200_000 // 13/02/2023 */
|
||||
val isNewConfigEnabled = true
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -4,10 +4,11 @@ import com.google.protobuf.ByteString
|
||||
import org.session.libsignal.utilities.Log
|
||||
import org.session.libsignal.protos.SignalServiceProtos
|
||||
|
||||
class Profile() {
|
||||
var displayName: String? = null
|
||||
var profileKey: ByteArray? = null
|
||||
class Profile(
|
||||
var displayName: String? = null,
|
||||
var profileKey: ByteArray? = null,
|
||||
var profilePictureURL: String? = null
|
||||
) {
|
||||
|
||||
companion object {
|
||||
const val TAG = "Profile"
|
||||
@@ -25,12 +26,6 @@ class Profile() {
|
||||
}
|
||||
}
|
||||
|
||||
constructor(displayName: String, profileKey: ByteArray? = null, profilePictureURL: String? = null) : this() {
|
||||
this.displayName = displayName
|
||||
this.profileKey = profileKey
|
||||
this.profilePictureURL = profilePictureURL
|
||||
}
|
||||
|
||||
fun toProto(): SignalServiceProtos.DataMessage? {
|
||||
val displayName = displayName
|
||||
if (displayName == null) {
|
||||
|
Reference in New Issue
Block a user