Merge branch 'release/1.4.2' into develop

This commit is contained in:
Benoit Marty 2022-02-22 21:32:04 +01:00
commit ad1c4bf790
32 changed files with 62 additions and 36 deletions

View file

@ -1,3 +1,50 @@
Changes in Element v1.4.2 (2022-02-22)
======================================
Features ✨
----------
- Open the room when user accepts an invite from the room list ([#3771](https://github.com/vector-im/element-android/issues/3771))
- Add completion for @room to notify everyone in a room ([#5123](https://github.com/vector-im/element-android/issues/5123))
- Improve UI of reactions in timeline, including quick add reaction. ([#5204](https://github.com/vector-im/element-android/issues/5204))
- Support creating disclosed polls ([#5290](https://github.com/vector-im/element-android/issues/5290))
Bugfixes 🐛
----------
- Remove redundant highlight on add poll option button ([#5178](https://github.com/vector-im/element-android/issues/5178))
- Reliably display crash report prompt ([#5195](https://github.com/vector-im/element-android/issues/5195))
- Fix for rooms with virtual rooms not showing call status events in the timeline. ([#5198](https://github.com/vector-im/element-android/issues/5198))
- Fix for call transfer with consult failing to make outgoing consultation call. ([#5201](https://github.com/vector-im/element-android/issues/5201))
- Fix crash during account registration when redirecting to Web View ([#5218](https://github.com/vector-im/element-android/issues/5218))
- Analytics: Fixes missing use case identity values from within the onboarding flow ([#5234](https://github.com/vector-im/element-android/issues/5234))
- Fixing crash when adding room by QR code after accepting the camera permission for the first time ([#5295](https://github.com/vector-im/element-android/issues/5295))
SDK API changes ⚠️
------------------
- `join` and `leave` methods moved from MembershipService to RoomService and SpaceService to split logic for rooms and spaces ([#5183](https://github.com/vector-im/element-android/issues/5183))
- Deprecates Matrix.initialize and Matrix.getInstance in favour of the client providing its own singleton instance via Matrix.createInstance ([#5185](https://github.com/vector-im/element-android/issues/5185))
- Adds support for MSC3283, additional homeserver capabilities ([#5207](https://github.com/vector-im/element-android/issues/5207))
Other changes
-------------
- Right align the notifications badge in the rooms list (and DMs) so that it's always in a consistent place on the screen. ([#4640](https://github.com/vector-im/element-android/issues/4640))
- Collapse successive ACLs events in room timeline ([#2782](https://github.com/vector-im/element-android/issues/2782))
- Home screen: Replacing search icon by filter icon in the top right menu ([#4643](https://github.com/vector-im/element-android/issues/4643))
- Make Space creation screens more consistent ([#5104](https://github.com/vector-im/element-android/issues/5104))
- Defensive coding to ensure encryption when room was once e2e ([#5136](https://github.com/vector-im/element-android/issues/5136))
- Reduce verbosity of debug logging, ([#5209](https://github.com/vector-im/element-android/issues/5209))
- Standardise emulator versions of GHA integration tests. ([#5210](https://github.com/vector-im/element-android/issues/5210))
- Replacing color "vctr_unread_room_badge" by "vctr_content_secondary" ([#5225](https://github.com/vector-im/element-android/issues/5225))
- Change preferred jitsi domain from `jitsi.riot.im` to `meet.element.io` ([#5254](https://github.com/vector-im/element-android/issues/5254))
- Analytics screen events are now tracked on screen enter instead of screen leave ([#5256](https://github.com/vector-im/element-android/issues/5256))
- Improves bitmap memory usage by caching the shortcut images ([#5276](https://github.com/vector-im/element-android/issues/5276))
- Changes unread marker in room list from green to grey ([#5294](https://github.com/vector-im/element-android/issues/5294))
- Improve some internal realm usages. ([#5297](https://github.com/vector-im/element-android/issues/5297))
Translations 🗣
--------------
- Improved Japanese translations (special thanks to Suguru Hirahara!)
Changes in Element v1.4.0 (2022-02-09)
======================================

View file

@ -1 +0,0 @@
Collapse successive ACLs events in room timeline

View file

@ -1 +0,0 @@
Open the room when user accepts an invite from the room list

View file

@ -1 +0,0 @@
Right align the notifications badge in the rooms list (and DMs) so that it's always in a consistent place on the screen.

View file

@ -1 +0,0 @@
Home screen: Replacing search icon by filter icon in the top right menu

View file

@ -1 +0,0 @@
Make Space creation screens more consistent

View file

@ -1 +0,0 @@
Add completion for @room to notify everyone in a room

View file

@ -1 +0,0 @@
Defensive coding to ensure encryption when room was once e2e

View file

@ -1 +0,0 @@
Remove redundant highlight on add poll option button

View file

@ -1 +0,0 @@
`join` and `leave` methods moved from MembershipService to RoomService and SpaceService to split logic for rooms and spaces

View file

@ -1 +0,0 @@
Deprecates Matrix.initialize and Matrix.getInstance in favour of the client providing its own singleton instance via Matrix.createInstance

View file

@ -1 +0,0 @@
Reliably display crash report prompt

View file

@ -1 +0,0 @@
Fix for rooms with virtual rooms not showing call status events in the timeline.

View file

@ -1 +0,0 @@
Fix for call transfer with consult failing to make outgoing consultation call.

View file

@ -1 +0,0 @@
Improve UI of reactions in timeline, including quick add reaction.

View file

@ -1 +0,0 @@
Adds support for MSC3283, additional homeserver capabilities

View file

@ -1 +0,0 @@
Reduce verbosity of debug logging,

View file

@ -1 +0,0 @@
Standardise emulator versions of GHA integration tests.

View file

@ -1 +0,0 @@
Fix crash during account registration when redirecting to Web View

View file

@ -1 +0,0 @@
Replacing color "vctr_unread_room_badge" by "vctr_content_secondary"

View file

@ -1 +0,0 @@
Analytics: Fixes missing use case identity values from within the onboarding flow

View file

@ -1 +0,0 @@
Increments database schema to take advantage of homeserver capabilities entity migration (fixes crash in pre-release builds)

View file

@ -1 +0,0 @@
Change preferred jitsi domain from `jitsi.riot.im` to `meet.element.io`

View file

@ -1 +0,0 @@
Analytics screen events are now tracked on screen enter instead of screen leave

View file

@ -1 +0,0 @@
Improves bitmap memory usage by caching the shortcut images

View file

@ -1 +0,0 @@
Support creating disclosed polls

View file

@ -1 +0,0 @@
Changes unread marker in room list from green to grey

View file

@ -1 +0,0 @@
Fixing crash when adding room by QR code after accepting the camera permission for the first time

View file

@ -1 +0,0 @@
Improve some internal realm usages.

View file

@ -1,2 +1,2 @@
Main changes in this version: Initial implementation of thread messages. Message bubbles.
Main changes in this version: Initial implementation of thread messages. Message bubbles.
Full changelog: https://github.com/vector-im/element-android/releases/tag/v1.4.0

View file

@ -0,0 +1,2 @@
Main changes in this version: add support to @room and undisclosed polls among many other little changes.
Full changelog: https://github.com/vector-im/element-android/releases/tag/v1.4.2

View file

@ -23,18 +23,23 @@ import org.matrix.android.sdk.internal.database.model.RoomMemberSummaryEntity
import org.matrix.android.sdk.internal.database.query.where
import javax.inject.Inject
internal class ReadReceiptsSummaryMapper @Inject constructor(private val realmSessionProvider: RealmSessionProvider) {
internal class ReadReceiptsSummaryMapper @Inject constructor(
private val realmSessionProvider: RealmSessionProvider
) {
fun map(readReceiptsSummaryEntity: ReadReceiptsSummaryEntity?): List<ReadReceipt> {
if (readReceiptsSummaryEntity == null) {
return emptyList()
}
val readReceipts = readReceiptsSummaryEntity.readReceipts
return readReceipts
.mapNotNull {
val roomMember = RoomMemberSummaryEntity.where(readReceiptsSummaryEntity.realm, roomId = it.roomId, userId = it.userId).findFirst()
?: return@mapNotNull null
ReadReceipt(roomMember.asDomain(), it.originServerTs.toLong())
}
return realmSessionProvider.withRealm { realm ->
readReceipts
.mapNotNull {
val roomMember = RoomMemberSummaryEntity.where(realm, roomId = it.roomId, userId = it.userId).findFirst()
?: return@mapNotNull null
ReadReceipt(roomMember.asDomain(), it.originServerTs.toLong())
}
}
}
}