Merge branch 'dev' into ui

This commit is contained in:
nielsandriesse 2021-05-31 14:52:12 +10:00
commit 7ca940c6aa
2 changed files with 8 additions and 5 deletions

View File

@ -143,8 +143,8 @@ dependencies {
testImplementation 'org.robolectric:shadows-multidex:4.2'
}
def canonicalVersionCode = 179
def canonicalVersionName = "1.10.11"
def canonicalVersionCode = 180
def canonicalVersionName = "1.10.12"
def postFixSize = 10
def abiPostFix = ['armeabi-v7a' : 1,

View File

@ -1,5 +1,6 @@
package org.session.libsession.messaging.open_groups
import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.databind.PropertyNamingStrategy
import com.fasterxml.jackson.databind.annotation.JsonNaming
import com.fasterxml.jackson.databind.type.TypeFactory
@ -60,9 +61,11 @@ object OpenGroupAPIV2 {
data class CompactPollRequest(val roomID: String, val authToken: String, val fromDeletionServerID: Long?, val fromMessageServerID: Long?)
data class CompactPollResult(val messages: List<OpenGroupMessageV2>, val deletions: List<MessageDeletion>, val moderators: List<String>)
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy::class)
data class MessageDeletion
@JvmOverloads constructor(val id: Long = 0, val deletedMessageServerID: Long = 0
data class MessageDeletion(
@JsonProperty("id")
val id: Long = 0,
@JsonProperty("deleted_message_id")
val deletedMessageServerID: Long = 0
) {
companion object {