mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-22 08:48:26 +00:00
open group poller + loki user profile
This commit is contained in:
parent
3c8447a257
commit
8c22514b73
@ -162,16 +162,16 @@ class OpenGroupPoller(private val openGroup: OpenGroup) {
|
|||||||
dataMessageProto.setQuote(quoteProto.build())
|
dataMessageProto.setQuote(quoteProto.build())
|
||||||
}
|
}
|
||||||
val messageServerID = message.serverID
|
val messageServerID = message.serverID
|
||||||
/* TODO: the signal service proto needs to be synced with iOS
|
|
||||||
// Profile
|
// Profile
|
||||||
val profileProto = DataMessage.LokiProfile.newBuilder()
|
val profileProto = LokiUserProfile.newBuilder()
|
||||||
profileProto.setDisplayName(message.displayName)
|
profileProto.setDisplayName(message.displayName)
|
||||||
val profilePicture = message.profilePicture
|
val profilePicture = message.profilePicture
|
||||||
if (profilePicture != null) {
|
if (profilePicture != null) {
|
||||||
profileProto.setProfilePicture(profilePicture.url)
|
profileProto.setProfilePictureURL(profilePicture.url)
|
||||||
dataMessageProto.setProfileKey(ByteString.copyFrom(profilePicture.profileKey))
|
dataMessageProto.setProfileKey(ByteString.copyFrom(profilePicture.profileKey))
|
||||||
}
|
}
|
||||||
dataMessageProto.setProfile(profileProto.build())
|
dataMessageProto.setProfile(profileProto.build())
|
||||||
|
/* TODO: the signal service proto needs to be synced with iOS
|
||||||
// Open group info
|
// Open group info
|
||||||
if (messageServerID != null) {
|
if (messageServerID != null) {
|
||||||
val openGroupProto = PublicChatInfo.newBuilder()
|
val openGroupProto = PublicChatInfo.newBuilder()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user