Skip to content

Commit effdca1

Browse files
committed
Merge branch 'release/1.6.12' into main
2 parents 493093c + 2831efd commit effdca1

File tree

37 files changed

+203
-107
lines changed

37 files changed

+203
-107
lines changed

CHANGES.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
Changes in Element v1.6.12 (2024-02-16)
2+
=======================================
3+
4+
This update provides important security fixes, please update now.
5+
6+
Security fixes 🔐
7+
-----------------
8+
- Add a check on incoming intent. ([#1506 internal](https://github.com/matrix-org/internal-config/issues/1506))
9+
- Store temporary files created for Camera in the media folder. ([#1505 internal](https://github.com/matrix-org/internal-config/issues/1505))
10+
11+
Bugfixes 🐛
12+
----------
13+
- Switch the position and styles of the 'already have an account' and 'create account' buttons in the login splash screen. Also changes the 'already have an account one' to just say 'sign in'. ([#+update-login-splash-screen](https://github.com/element-hq/element-android/issues/+update-login-splash-screen))
14+
- Improve `Event.getClearContent()` and fix assignment issue that may help to decrypt last Event in the room list. ([#8744](https://github.com/element-hq/element-android/issues/8744))
15+
- Fix issues about location Event avatar rendering. ([#8749](https://github.com/element-hq/element-android/issues/8749))
16+
17+
118
Changes in Element v1.6.10 (2024-01-09)
219
=======================================
320

SECURITY.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Reporting a Vulnerability
22

3-
**If you've found a security vulnerability, please report it to security@matrix.org**
3+
**If you've found a security vulnerability in Element software, please report it to security@element.io.**
44

5-
For more information on our security disclosure policy, visit https://www.matrix.org/security-disclosure-policy/
5+
For more information on our security disclosure policy, visit https://element.io/security/security-disclosure-policy.

dependencies.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ ext.libs = [
101101
],
102102
element : [
103103
'opusencoder' : "io.element.android:opusencoder:1.1.0",
104-
'wysiwyg' : "io.element.android:wysiwyg:2.24.0"
104+
'wysiwyg' : "io.element.android:wysiwyg:2.29.0"
105105
],
106106
squareup : [
107107
'moshi' : "com.squareup.moshi:moshi:$moshi",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Main changes in this version: add Mobile Device Managament and functional members support.
1+
Main changes in this version: add Mobile Device Management and functional members support.
22
Full changelog: https://github.com/element-hq/element-android/releases
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Main changes in this version: Security release.
2+
Full changelog: https://github.com/element-hq/element-android/releases

library/multipicker/src/main/java/im/vector/lib/multipicker/utils/MediaFileUtils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import java.util.Locale
2424

2525
internal fun createTemporaryMediaFile(context: Context, mediaType: MediaType): File {
2626
val timeStamp: String = SimpleDateFormat("yyyyMMdd_HHmmss", Locale.getDefault()).format(Date())
27-
val storageDir: File = context.filesDir.also { it.mkdirs() }
27+
val storageDir: File = File(context.filesDir, "media").also { it.mkdirs() }
2828
val fileSuffix = when (mediaType) {
2929
MediaType.IMAGE -> ".jpg"
3030
MediaType.VIDEO -> ".mp4"

library/multipicker/src/main/res/xml/multipicker_provider_paths.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
<paths>
33
<files-path
44
name="external_files"
5-
path="." />
6-
</paths>
5+
path="media" />
6+
</paths>

library/ui-strings/src/main/res/values/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2095,6 +2095,7 @@
20952095
<string name="login_splash_text2">Keep conversations private with encryption</string>
20962096
<string name="login_splash_text3">Extend &amp; customize your experience</string>
20972097
<string name="login_splash_submit">Get started</string>
2098+
<string name="login_splash_sign_in">Sign In</string>
20982099
<string name="login_splash_create_account">Create account</string>
20992100
<string name="login_splash_already_have_account">I already have an account</string>
21002101

matrix-sdk-android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ android {
6262
// that the app's state is completely cleared between tests.
6363
testInstrumentationRunnerArguments clearPackageData: 'true'
6464

65-
buildConfigField "String", "SDK_VERSION", "\"1.6.10\""
65+
buildConfigField "String", "SDK_VERSION", "\"1.6.12\""
6666

6767
buildConfigField "String", "GIT_SDK_REVISION", "\"${gitRevision()}\""
6868
buildConfigField "String", "GIT_SDK_REVISION_UNIX_DATE", "\"${gitRevisionUnixDate()}\""

matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/SessionExtensions.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ package org.matrix.android.sdk.api.session
1919
import org.matrix.android.sdk.api.session.room.Room
2020
import org.matrix.android.sdk.api.session.room.model.RoomSummary
2121
import org.matrix.android.sdk.api.session.user.model.User
22+
import timber.log.Timber
2223

2324
/**
2425
* Get a room using the RoomService of a Session.
@@ -41,4 +42,5 @@ fun Session.getUser(userId: String): User? = userService().getUser(userId)
4142
/**
4243
* Similar to [getUser], but fallback to a User without details if the User is not known by the SDK, or if Session is null.
4344
*/
44-
fun Session?.getUserOrDefault(userId: String): User = this?.userService()?.getUser(userId) ?: User(userId)
45+
fun Session?.getUserOrDefault(userId: String): User = this?.userService()?.getUser(userId)
46+
?: User(userId).also { Timber.w("User $userId not found in local cache, fallback to default") }

0 commit comments

Comments
 (0)