Commit Graph

9101 Commits

Author SHA1 Message Date
Benoit Marty 18dcdc0e64 Communicate with Element Call about PiP status.
Also only use eventSink to communicate with the Presenter, instead of having public methods.
Change WeakReference to an Activity to a listener and update tests.
2024-08-23 16:19:21 +02:00
SpiritCroc 671def23b8 Big emoji-only messages
Adapted from SpiritCroc's SchildNext implementation from
https://github.com/SchildiChat/schildichat-android-next/commit/7eba87f02e884b9b921aa4e74dd0a737e4da31ad

Fixes: https://github.com/element-hq/element-x-android/issues/1438
Signed-off-by: Tobias Büttner <dev@spiritcroc.de>
Signed-off-by: Joe Groocock <me@frebib.net>
2024-08-23 13:46:19 +00:00
Joe Groocock 0f14bc1a1c Ensure consistent AggregatedReaction screenshots
Different system locales can generate different screenshots, causing CI
to be unhappy. Hardcoding a locale ensures the same date format is
always used.

Signed-off-by: Joe Groocock <me@frebib.net>
2024-08-23 13:38:27 +00:00
Benoit Marty 1b7c0dbe88 Merge pull request #3331 from element-hq/renovate/com.google.firebase-firebase-bom-33.x
Update dependency com.google.firebase:firebase-bom to v33.2.0
2024-08-23 11:44:09 +02:00
renovate[bot] 5549c8fed3 Update dependency com.google.firebase:firebase-bom to v33.2.0 2024-08-23 04:45:32 +00:00
Jorge Martin Espinosa 7859526280 Improve the text for mentions and replies in notifications (#3328) 2024-08-22 17:25:44 +00:00
Benoit Marty eeeb8fc35c Merge pull request #3327 from element-hq/feature/bma/moreTests
Add unit test on MatrixRoom extension
2024-08-22 18:33:03 +02:00
Benoit Marty bb085251b2 Reuse existing function 2024-08-22 15:25:04 +02:00
Benoit Marty 11691697d1 Add test on extension MatrixRoom.getCurrentRoomMember 2024-08-22 15:22:14 +02:00
Benoit Marty 0b494b01da Add test on extension MatrixRoom.getDirectRoomMember 2024-08-22 15:20:37 +02:00
Benoit Marty a27e317207 Remove unused code. 2024-08-22 15:01:00 +02:00
Benoit Marty a942fd4a24 Merge pull request #3322 from element-hq/feature/bma/roomAliasCompletion
Suggestion for room alias (disabled for now)
2024-08-22 14:47:29 +02:00
networkException 2678834cc0 Fix broken direct room member for rooms with old users that left (#3324)
This patch fixes getDirectRoomMember not respecting direct rooms
with more than two members total but only two active. This commonly
occurs when users migrate to a new account by adding a new account
to rooms and leaving with the old one.

Other parts of the codebase (such as the people room list filter)
already respect the active member count of a room instead of the
total (historic) number of unique members.

This fixes the room details screen not showing up correctly, for
example missing the avatar cluster.

Signed-off-by: networkException <git@nwex.de>
2024-08-22 14:47:13 +02:00
ElementBot e704af44bf Update screenshots 2024-08-22 11:54:08 +00:00
Benoit Marty 9c64bdde1a Merge pull request #3323 from element-hq/renovate/compose.bom
Update dependency androidx.compose:compose-bom to v2024.08.00
2024-08-22 13:50:29 +02:00
Benoit Marty 8574340717 Use extension getAvatarData 2024-08-22 13:39:25 +02:00
Benoit Marty 811abe7755 Move package io.element.android.features.messages.impl.mentions to io.element.android.features.messages.impl.messagecomposer.suggestions 2024-08-22 13:31:58 +02:00
Benoit Marty dbe73076ff rename test function. 2024-08-22 13:26:05 +02:00
Benoit Marty 48ea516639 Rename MentionSuggestionsProcessor to SuggestionsProcessor since it's not only used for mentions. 2024-08-22 13:24:57 +02:00
Benoit Marty 3dfa9764d6 Merge pull request #3325 from element-hq/renovate/telephoto
Update telephoto to v0.13.0
2024-08-22 11:13:36 +02:00
renovate[bot] e6ab680f91 Update telephoto to v0.13.0 2024-08-22 05:29:39 +00:00
renovate[bot] ebd8120d2e Update dependency androidx.compose:compose-bom to v2024.08.00 2024-08-21 18:47:16 +00:00
Benoit Marty b112713d69 Rename test because method has been renamed. 2024-08-21 18:36:06 +02:00
Benoit Marty 2488ea6c98 Add missing test for MarkdownTextEditorState 2024-08-21 18:35:23 +02:00
Benoit Marty a6cf231322 Add unit test for DefaultRoomAliasSuggestionsDataSource 2024-08-21 18:25:41 +02:00
Benoit Marty d5feda5935 Add test on MentionSuggestionsProcessor and simplify the class. 2024-08-21 18:16:52 +02:00
Benoit Marty 5df3e6d684 Convert MentionSuggestionsProcessor to a class and inject it in the constructor of MessageComposerPresenter 2024-08-21 17:41:10 +02:00
Benoit Marty 6309137a53 Reorder imports 2024-08-21 17:27:55 +02:00
Benoit Marty c306636d56 Remove needless blank line 2024-08-21 17:27:29 +02:00
Benoit Marty b3e8cf443e Fix test regression. 2024-08-21 16:59:44 +02:00
Benoit Marty c5d1bed5b4 Fix test compilation issue. 2024-08-21 16:32:37 +02:00
Benoit Marty 3350b661e7 Fix import ordering. 2024-08-21 16:31:03 +02:00
Benoit Marty 4c8f23a0cb Add feature flag for room alias suggestions, disabled by default. 2024-08-21 15:50:55 +02:00
ElementBot ff217d4f88 Update screenshots 2024-08-21 13:45:00 +00:00
Benoit Marty 57d927e9aa Suggestion for room alias.
Rename `Mention` to `IntentionalMention` for clarity
Remove dead code, there is no intentional mention for Room or RoomAlias.
Rename `IntentionalMention.AtRoom` to `IntentionalMention.Room` to match Rust naming
2024-08-21 15:32:05 +02:00
renovate[bot] 1b1062be24 Update dagger to v2.52 (#3270)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-21 08:48:22 +00:00
Benoit Marty c01bbe79e6 Merge pull request #3318 from element-hq/feature/bma/checkMethodName
Add test on function name which may start or end with spaces
2024-08-21 09:25:47 +02:00
Jorge Martin Espinosa 0686745fd4 Fix reset identity with password stuck in loading state. (#3317)
Make sure `resetIdentityFlowManager.whenResetIsDone` is registered *after* the previous reset attempt is cancelled, otherwise the current one will be cancelled instead.
2024-08-20 19:04:20 +00:00
Benoit Marty f2b38e50e3 Add test on function name which may start or end with spaces and fix existing issues. 2024-08-20 17:11:30 +02:00
renovate[bot] 534e3a8585 Update lifecycle to v2.8.4 (#3315)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-20 11:03:01 +00:00
renovate[bot] e9ad39a0bf Update lifecycle to v2.8.0 (#2848)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martin Espinosa <jorgem@element.io>
Co-authored-by: Benoit Marty <benoit@matrix.org>
2024-08-20 12:37:30 +02:00
Benoit Marty 828e90f5c5 Merge pull request #3314 from element-hq/gradlew-update-8.10
Update Gradle Wrapper from 8.9 to 8.10
2024-08-20 11:17:40 +02:00
gradle-update-robot 719ca2621b Update Gradle Wrapper from 8.9 to 8.10.
Signed-off-by: gradle-update-robot <gradle-update-robot@regolo.cc>
2024-08-20 08:38:21 +00:00
Benoit Marty 2eb3bd5682 Merge pull request #3313 from element-hq/feature/bma/fixGradleUpdateAction2
Gradle update action: add label and use other token.
2024-08-20 10:29:50 +02:00
Benoit Marty 1fbb36eb72 Update Gradle: Change the token used by the action so workflows are triggered in the resulting PR 2024-08-20 10:25:36 +02:00
Benoit Marty a748aa7b20 Update Gradle: add label PR-Dependencies to PR it creates. 2024-08-20 10:18:08 +02:00
Benoit Marty 97047181ce Merge pull request #3311 from element-hq/feature/bma/fixGradleUpdateAction
Gradle update action: Use JDK 17 and skip early in forks.
2024-08-20 09:58:02 +02:00
Benoit Marty abd1a51453 Update Gradle: ddd workflow_dispatch 2024-08-20 09:33:37 +02:00
Benoit Marty 0269f868fe Renovate: Disable gradle update. Update of gradle is done by a specific GitHub action. 2024-08-20 09:31:29 +02:00
Benoit Marty fae13290eb Gradle update action: Use JDK 17 and skip early in forks. 2024-08-20 09:24:21 +02:00