mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 20:15:21 +00:00
fix: proper sending of join URL and removing server timestamp in proto parsing
This commit is contained in:
parent
e8bac5005e
commit
14a02a8511
@ -39,7 +39,7 @@ data class OpenGroupV2(
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fun toJoinUrl(): String = "$server/$id?public_key=$publicKey"
|
fun toJoinUrl(): String = "$server/$room?public_key=$publicKey"
|
||||||
|
|
||||||
fun toJson(): Map<String,String> = mapOf(
|
fun toJson(): Map<String,String> = mapOf(
|
||||||
"room" to room,
|
"room" to room,
|
||||||
|
@ -97,7 +97,6 @@ class OpenGroupV2Poller(private val openGroups: List<OpenGroupV2>, private val e
|
|||||||
builder.source = senderPublicKey
|
builder.source = senderPublicKey
|
||||||
builder.sourceDevice = 1
|
builder.sourceDevice = 1
|
||||||
builder.content = message.toProto().toByteString()
|
builder.content = message.toProto().toByteString()
|
||||||
builder.serverTimestamp = message.serverID ?: 0
|
|
||||||
builder.timestamp = message.sentTimestamp
|
builder.timestamp = message.sentTimestamp
|
||||||
val envelope = builder.build()
|
val envelope = builder.build()
|
||||||
val job = MessageReceiveJob(envelope.toByteArray(), isBackgroundPoll, message.serverID, serverRoomId)
|
val job = MessageReceiveJob(envelope.toByteArray(), isBackgroundPoll, message.serverID, serverRoomId)
|
||||||
|
Loading…
Reference in New Issue
Block a user