Merge branch 'release/1.1.11' into main

This commit is contained in:
Benoit Marty 2021-06-22 12:27:44 +02:00
commit a3d54f1466
5 changed files with 18 additions and 6 deletions

View File

@ -1,3 +1,12 @@
Changes in Element v1.1.11 (2021-06-22)
=======================================
Bugfixes 🐛
----------
- Send button does not show up half of the time ([#3535](https://github.com/vector-im/element-android/issues/3535))
- Fix crash on signout: release session at the end of clean up. ([#3538](https://github.com/vector-im/element-android/issues/3538))
Changes in Element v1.1.10 (2021-06-18) Changes in Element v1.1.10 (2021-06-18)
======================================= =======================================

View File

@ -0,0 +1,2 @@
Main changes in this version: theme and style update and new features for spaces (bugfix for 1.1.10)
Full changelog: https://github.com/vector-im/element-android/releases/tag/v1.1.11

View File

@ -51,15 +51,12 @@ internal class CleanupSession @Inject constructor(
@UserMd5 private val userMd5: String @UserMd5 private val userMd5: String
) { ) {
suspend fun handle() { suspend fun handle() {
Timber.d("Cleanup: release session...") Timber.d("Cleanup: delete session params...")
sessionManager.releaseSession(sessionId) sessionParamsStore.delete(sessionId)
Timber.d("Cleanup: cancel pending works...") Timber.d("Cleanup: cancel pending works...")
workManagerProvider.cancelAllWorks() workManagerProvider.cancelAllWorks()
Timber.d("Cleanup: delete session params...")
sessionParamsStore.delete(sessionId)
Timber.d("Cleanup: clear session data...") Timber.d("Cleanup: clear session data...")
clearSessionDataTask.execute(Unit) clearSessionDataTask.execute(Unit)
@ -74,6 +71,9 @@ internal class CleanupSession @Inject constructor(
realmKeysUtils.clear(SessionModule.getKeyAlias(userMd5)) realmKeysUtils.clear(SessionModule.getKeyAlias(userMd5))
realmKeysUtils.clear(CryptoModule.getKeyAlias(userMd5)) realmKeysUtils.clear(CryptoModule.getKeyAlias(userMd5))
Timber.d("Cleanup: release session...")
sessionManager.releaseSession(sessionId)
// Sanity check // Sanity check
if (BuildConfig.DEBUG) { if (BuildConfig.DEBUG) {
Realm.getGlobalInstanceCount(realmSessionConfiguration) Realm.getGlobalInstanceCount(realmSessionConfiguration)

View File

@ -14,7 +14,7 @@ kapt {
// Note: 2 digits max for each value // Note: 2 digits max for each value
ext.versionMajor = 1 ext.versionMajor = 1
ext.versionMinor = 1 ext.versionMinor = 1
ext.versionPatch = 10 ext.versionPatch = 11
static def getGitTimestamp() { static def getGitTimestamp() {
def cmd = 'git show -s --format=%ct' def cmd = 'git show -s --format=%ct'

View File

@ -73,6 +73,7 @@ class TextComposerView @JvmOverloads constructor(
override fun onTextBlankStateChanged(isBlank: Boolean) { override fun onTextBlankStateChanged(isBlank: Boolean) {
callback?.onTextBlankStateChanged(isBlank) callback?.onTextBlankStateChanged(isBlank)
val shouldBeVisible = currentConstraintSetId == R.layout.composer_layout_constraint_set_expanded || !isBlank val shouldBeVisible = currentConstraintSetId == R.layout.composer_layout_constraint_set_expanded || !isBlank
TransitionManager.endTransitions(this@TextComposerView)
if (views.sendButton.isVisible != shouldBeVisible) { if (views.sendButton.isVisible != shouldBeVisible) {
TransitionManager.beginDelayedTransition( TransitionManager.beginDelayedTransition(
this@TextComposerView, this@TextComposerView,