mirror of
https://github.com/oxen-io/session-android.git
synced 2025-05-21 14:48:23 +00:00
fix sending profile picture update
This commit is contained in:
parent
9d4c3bf722
commit
2426230064
@ -43,6 +43,7 @@ import org.thoughtcrime.securesms.mms.PartAuthority
|
|||||||
import org.session.libsession.messaging.messages.signal.IncomingGroupMessage
|
import org.session.libsession.messaging.messages.signal.IncomingGroupMessage
|
||||||
import org.session.libsession.messaging.messages.signal.IncomingTextMessage
|
import org.session.libsession.messaging.messages.signal.IncomingTextMessage
|
||||||
import org.session.libsession.messaging.messages.signal.OutgoingTextMessage
|
import org.session.libsession.messaging.messages.signal.OutgoingTextMessage
|
||||||
|
import org.session.libsession.utilities.preferences.ProfileKeyUtil
|
||||||
|
|
||||||
class Storage(context: Context, helper: SQLCipherOpenHelper) : Database(context, helper), StorageProtocol {
|
class Storage(context: Context, helper: SQLCipherOpenHelper) : Database(context, helper), StorageProtocol {
|
||||||
override fun getUserPublicKey(): String? {
|
override fun getUserPublicKey(): String? {
|
||||||
@ -64,8 +65,7 @@ class Storage(context: Context, helper: SQLCipherOpenHelper) : Database(context,
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun getUserProfileKey(): ByteArray? {
|
override fun getUserProfileKey(): ByteArray? {
|
||||||
val profileKey = TextSecurePreferences.getProfileKey(context) ?: return null
|
return ProfileKeyUtil.getProfileKey(context)
|
||||||
return profileKey.toByteArray()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun getUserProfilePictureURL(): String? {
|
override fun getUserProfilePictureURL(): String? {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user