Merge branch 'release/1.3.14' into main
This commit is contained in:
commit
576931c21a
@ -1,3 +1,11 @@
|
|||||||
|
Changes in Element v1.3.14 (2022-01-12)
|
||||||
|
=======================================
|
||||||
|
|
||||||
|
Bugfixes 🐛
|
||||||
|
----------
|
||||||
|
- Fix sending events in encrypted rooms broken, and incremental sync broken in 1.3.13 ([#4924](https://github.com/vector-im/element-android/issues/4924))
|
||||||
|
|
||||||
|
|
||||||
Changes in Element v1.3.13 (2022-01-11)
|
Changes in Element v1.3.13 (2022-01-11)
|
||||||
=======================================
|
=======================================
|
||||||
|
|
||||||
|
2
fastlane/metadata/android/en-US/changelogs/40103140.txt
Normal file
2
fastlane/metadata/android/en-US/changelogs/40103140.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
Main changes in this version: First change in onboarding screens, including Analytics opt-in. Support for Events with Math added in the labs.
|
||||||
|
Full changelog: https://github.com/vector-im/element-android/releases/tag/v1.3.14
|
@ -31,7 +31,7 @@ android {
|
|||||||
// that the app's state is completely cleared between tests.
|
// that the app's state is completely cleared between tests.
|
||||||
testInstrumentationRunnerArguments clearPackageData: 'true'
|
testInstrumentationRunnerArguments clearPackageData: 'true'
|
||||||
|
|
||||||
buildConfigField "String", "SDK_VERSION", "\"1.3.13\""
|
buildConfigField "String", "SDK_VERSION", "\"1.3.14\""
|
||||||
|
|
||||||
buildConfigField "String", "GIT_SDK_REVISION", "\"${gitRevision()}\""
|
buildConfigField "String", "GIT_SDK_REVISION", "\"${gitRevision()}\""
|
||||||
resValue "string", "git_sdk_revision", "\"${gitRevision()}\""
|
resValue "string", "git_sdk_revision", "\"${gitRevision()}\""
|
||||||
|
@ -578,7 +578,7 @@ internal class DefaultCryptoService @Inject constructor(
|
|||||||
// (for now at least. Maybe we should alert the user somehow?)
|
// (for now at least. Maybe we should alert the user somehow?)
|
||||||
val existingAlgorithm = cryptoStore.getRoomAlgorithm(roomId)
|
val existingAlgorithm = cryptoStore.getRoomAlgorithm(roomId)
|
||||||
|
|
||||||
if (existingAlgorithm == algorithm) {
|
if (existingAlgorithm == algorithm && roomEncryptorsStore.get(roomId) != null) {
|
||||||
// ignore
|
// ignore
|
||||||
Timber.tag(loggerTag.value).e("setEncryptionInRoom() : Ignoring m.room.encryption for same alg ($algorithm) in $roomId")
|
Timber.tag(loggerTag.value).e("setEncryptionInRoom() : Ignoring m.room.encryption for same alg ($algorithm) in $roomId")
|
||||||
return false
|
return false
|
||||||
|
@ -30,8 +30,8 @@ internal fun TimelineEventEntity.Companion.nextId(realm: Realm): Long {
|
|||||||
}
|
}
|
||||||
|
|
||||||
internal fun TimelineEventEntity.isMoreRecentThan(eventToCheck: TimelineEventEntity): Boolean {
|
internal fun TimelineEventEntity.isMoreRecentThan(eventToCheck: TimelineEventEntity): Boolean {
|
||||||
val currentChunk = this.chunk?.first() ?: return false
|
val currentChunk = this.chunk?.first(null) ?: return false
|
||||||
val chunkToCheck = eventToCheck.chunk?.firstOrNull() ?: return false
|
val chunkToCheck = eventToCheck.chunk?.first(null) ?: return false
|
||||||
return if (currentChunk == chunkToCheck) {
|
return if (currentChunk == chunkToCheck) {
|
||||||
this.displayIndex >= eventToCheck.displayIndex
|
this.displayIndex >= eventToCheck.displayIndex
|
||||||
} else {
|
} else {
|
||||||
|
@ -51,7 +51,7 @@ internal class DefaultRoomGetter @Inject constructor(
|
|||||||
.equalTo(RoomSummaryEntityFields.IS_DIRECT, true)
|
.equalTo(RoomSummaryEntityFields.IS_DIRECT, true)
|
||||||
.equalTo(RoomSummaryEntityFields.MEMBERSHIP_STR, Membership.JOIN.name)
|
.equalTo(RoomSummaryEntityFields.MEMBERSHIP_STR, Membership.JOIN.name)
|
||||||
.findAll()
|
.findAll()
|
||||||
.firstOrNull { dm -> dm.otherMemberIds.size == 1 && dm.otherMemberIds.first() == otherUserId }
|
.firstOrNull { dm -> dm.otherMemberIds.size == 1 && dm.otherMemberIds.first(null) == otherUserId }
|
||||||
?.roomId
|
?.roomId
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -426,9 +426,9 @@ internal class TimelineChunk(private val chunkEntity: ChunkEntity,
|
|||||||
if (initialEventId != null) {
|
if (initialEventId != null) {
|
||||||
frozenTimelineEvents.where().equalTo(TimelineEventEntityFields.EVENT_ID, initialEventId).findFirst()?.displayIndex
|
frozenTimelineEvents.where().equalTo(TimelineEventEntityFields.EVENT_ID, initialEventId).findFirst()?.displayIndex
|
||||||
} else if (direction == Timeline.Direction.BACKWARDS) {
|
} else if (direction == Timeline.Direction.BACKWARDS) {
|
||||||
frozenTimelineEvents.first()?.displayIndex
|
frozenTimelineEvents.first(null)?.displayIndex
|
||||||
} else {
|
} else {
|
||||||
frozenTimelineEvents.last()?.displayIndex
|
frozenTimelineEvents.last(null)?.displayIndex
|
||||||
}
|
}
|
||||||
} else if (direction == Timeline.Direction.FORWARDS) {
|
} else if (direction == Timeline.Direction.FORWARDS) {
|
||||||
builtEvents.first().displayIndex + 1
|
builtEvents.first().displayIndex + 1
|
||||||
|
@ -15,7 +15,10 @@ kapt {
|
|||||||
// Note: 2 digits max for each value
|
// Note: 2 digits max for each value
|
||||||
ext.versionMajor = 1
|
ext.versionMajor = 1
|
||||||
ext.versionMinor = 3
|
ext.versionMinor = 3
|
||||||
ext.versionPatch = 13
|
// Note: even values are reserved for regular release, odd values for hotfix release.
|
||||||
|
// When creating a hotfix, you should decrease the value, since the current value
|
||||||
|
// is the value for the next regular release.
|
||||||
|
ext.versionPatch = 14
|
||||||
|
|
||||||
static def getGitTimestamp() {
|
static def getGitTimestamp() {
|
||||||
def cmd = 'git show -s --format=%ct'
|
def cmd = 'git show -s --format=%ct'
|
||||||
|
Loading…
Reference in New Issue
Block a user