Commit graph

3442 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
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
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
c306636d56 Remove needless blank line 2024-08-21 17:27:29 +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
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
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
Benoit Marty
6b528596ed
Merge pull request #3307 from element-hq/feature/bma/cleanup
Cleanup and add unit test for DefaultPinnedMessagesBannerFormatter
2024-08-20 09:10:31 +02:00
bmarty
3e67448006 Sync Strings from Localazy 2024-08-19 00:25:36 +00:00
Benoit Marty
21f2c5a231
Merge pull request #3240 from element-hq/feature/valere/message_shields
Timeline UI | MessageShield Support
2024-08-16 14:25:33 +02:00
Benoit Marty
6776df8b40 Remove useless Boxes. 2024-08-16 11:58:18 +02:00
Benoit Marty
25eb1fa7a4 Default value to redact own message should be true. 2024-08-16 11:58:18 +02:00
Benoit Marty
70558aa381 Move editMessageLambda to the constructor. 2024-08-16 11:58:17 +02:00
Benoit Marty
459f60d8a0 Add preview for message shield dialog. 2024-08-16 11:33:52 +02:00
Benoit Marty
2116108a2c Add UI test on clicking on message shield.
Need to add content description on the shield icon.
2024-08-16 11:16:07 +02:00
Benoit Marty
3f90b02e54 Add test on TimelineEvents.ShowShieldDialog and TimelineEvents.HideShieldDialog 2024-08-16 10:45:20 +02:00
Benoit Marty
4efa95bc0b Iterate on mapping MessageShield -> icon
iOS impl: https://github.com/element-hq/element-x-ios/blob/develop/ElementX/Sources/Services/Timeline/TimelineItemContent/EncryptionAuthenticity.swift#L59-L65
2024-08-16 09:56:01 +02:00
Benoit Marty
3676bca042 Make extension isCritical a val instead of a fun. 2024-08-16 09:56:01 +02:00
Benoit Marty
faf1e7da9f Iterate on shield mapping and rendering
Also handle click on the timeline and information displayed on long click.
2024-08-14 17:24:11 +02:00
Jorge Martín
8a1e333aa7 Fix most review comments 2024-08-14 16:53:50 +02:00
Benoit Marty
5d10b1fe85
Merge branch 'develop' into feature/valere/message_shields 2024-08-14 12:37:31 +02:00
Jorge Martín
d5eb71ab0b Add an extra test 2024-08-13 08:55:07 +02:00
Jorge Martín
f41e42d611 Remove unused import 2024-08-13 08:55:07 +02:00
Jorge Martín
5e3e1271b4 Fix Konsist failures 2024-08-13 08:55:07 +02:00
Jorge Martín
c02f0135f8 Fix vertical position for the primary button in VerifySelfSessionView 2024-08-13 08:55:06 +02:00
Jorge Martín
5239e5ce81 Fix lint issues 2024-08-13 08:55:06 +02:00
Jorge Martín
7fd0ad09dc Improve APIs, add tests 2024-08-13 08:55:06 +02:00
Jorge Martín
175bada0df Improve existing APIs 2024-08-13 08:55:06 +02:00
Jorge Martín
abb9959789 Use extracted OIDC flow to display the reset identity screen 2024-08-13 08:55:05 +02:00
Jorge Martín
ee7a31cace Extract OIDC to its own module 2024-08-13 08:55:05 +02:00
Jorge Martín
4ab0b1074d Initial implementation of the reset identity feature 2024-08-13 08:55:05 +02:00
ElementBot
8bd48fdc60
Sync Strings (#3297)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2024-08-12 06:03:23 +00:00
ganfra
a5d633a02f Pinned events : minor code quality changes 2024-08-08 14:51:49 +02:00
ganfra
331413e8b4 Pinned events: make sure state is preserved 2024-08-07 19:00:41 +02:00
ganfra
ac14845797 Pinned events: fix public compose method. 2024-08-07 16:31:23 +02:00
ganfra
49f4526338 Pinned events : banner goes backward instead of forward 2024-08-07 15:57:27 +02:00
ganfra
04995cb26c Pinned events : add some ui testing 2024-08-07 12:26:52 +02:00
ganfra
c609a7d002 Pinned events : use correct ordering logic 2024-08-06 19:05:08 +02:00
ganfra
d7edc7e165 Pinned events : fix click on banner 2024-08-06 16:51:53 +02:00
ganfra
0390ede2ad Pinned events: add tests on PinnedMessagesBannerPresenter 2024-08-06 16:13:30 +02:00
ganfra
50fd2558de Pinned events : handle loading/error on banner 2024-08-06 15:08:45 +02:00
ganfra
229c02e895 Merge branch 'develop' into feature/fga/pinned_message_banner_logic 2024-08-05 20:46:24 +02:00