|
|
@ -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()
|
|
|
|