Commit graph

753 commits

Author SHA1 Message Date
Florian Renaud
5d0fb45ff6 Update room properties from room details (#439)
-  Add the edit action in the room details
-  Add "Add topic" button in room details
-  Add the screen behind that action to edit some room properties: avatar, name, topic
   -  Handle the save button action
      - enable the button only if changes are detected
      - display a loader "updating room"
      - display an error dialog if any request has failed
- Check user has the right power level to change various attributes
   - "Add topic" is only shown if there's no topic and they are able to set on
   - Edit menu is only shown if they can change topic, name or avatar
   - On the edit page, any fields they can't change are uneditable

Co-authored-by: Chris Smith <csmith@lunarian.uk>
2023-06-01 15:10:29 +00:00
Jorge Martin Espinosa
a36f4b7947 [Room details] Open room member details when clicking on user data in timeline (#482) 2023-06-01 12:03:27 +02:00
Chris Smith
473bfd1e23 Display a notice if Matrix ID isn't resolved (#461)
Display a notice if Matrix ID isn't resolved

If we can't get the profile of a user after an mxid was
searched for, show a warning under their ID to say the
invite probably won't be delivered.

Closes #424
2023-06-01 08:40:45 +00:00
Benoit Marty
4dbeaa3390 Merge pull request #347 from vector-im/feature/bma/oidc2
Add (disabled) Oidc support
2023-05-31 16:42:34 +02:00
Benoit Marty
bbacda4b45 Cleanup after PR review. 2023-05-31 10:34:03 +02:00
Benoit Marty
31e0120f46 Ignore temporary error. 2023-05-30 16:38:46 +02:00
Benoit Marty
d9831cb8ab Make the application compile with a SDK with no support for Oidc. 2023-05-30 15:59:58 +02:00
Benoit Marty
f6302e4ed3 better api 2023-05-30 15:59:58 +02:00
Benoit Marty
ad4141fcc9 Cleanup 2023-05-30 15:59:58 +02:00
Benoit Marty
e3c781ad76 Custom tab: dark theme support. 2023-05-30 15:59:58 +02:00
Benoit Marty
5ae2a199dc Add test for oidc with custom tab. 2023-05-30 15:59:58 +02:00
Benoit Marty
142c459861 Fix compilation and test 2023-05-30 15:59:58 +02:00
Benoit Marty
0766ec456c Oidc custom tab: avoid replay. 2023-05-30 15:59:58 +02:00
Benoit Marty
0e9c7bc15a Start CustomTab from Activity 2023-05-30 15:59:58 +02:00
Benoit Marty
4951a94af5 Create sub packages. 2023-05-30 15:59:58 +02:00
Benoit Marty
d2f969252d Oidc with CustomTab 2023-05-30 15:59:58 +02:00
Benoit Marty
d2b73dd6bc Quality checks 2023-05-30 15:59:58 +02:00
Benoit Marty
4cc3050871 Cleanup 2023-05-30 15:59:58 +02:00
Benoit Marty
f8dbd31c11 Test for Oidc 2023-05-30 15:59:58 +02:00
Chris Smith
6ad14aa223 Fix flaky media tests. (#479)
Creating a mock during the test run seems to sometimes take a
large amount of time when running the tests in parallel (possibly
some kind of resource contention?)

Instead, perform the mocking in the test class so it's part of
the setup, not the  actual test runs.
2023-05-30 13:57:03 +00:00
Benoit Marty
9551a5e6f8 Rework the set homeserver part: get the info, instead of hard-coded value, and implement retry in case of error. 2023-05-30 15:14:57 +02:00
Benoit Marty
f1d2f566bc Add OIDC support 2023-05-30 15:14:57 +02:00
Benoit Marty
ff1147e611 Sync localazy to fix lint error. 2023-05-30 13:55:23 +02:00
Benoit Marty
7f2b23507c Merge pull request #471 from vector-im/sync-localazy
Sync Strings
2023-05-30 13:06:51 +02:00
Benoit Marty
28ff9ea437 Reduce number of warnings 2023-05-30 11:43:38 +02:00
Benoit Marty
03e2fa04cb Fix alignment issue when there is an error. 2023-05-30 11:34:34 +02:00
Benoit Marty
60593fb1d7 Add preview for TimelineEventTimestampView 2023-05-30 11:33:33 +02:00
Benoit Marty
34980d34ad Improve preview again 2023-05-30 11:07:55 +02:00
Benoit Marty
0cbddd58bc Fix compilation issue after rebase. 2023-05-30 10:58:14 +02:00
Benoit Marty
25e432d24e Fix setting y offset to -12.dp can overlap a state event displayed above. Rework how the vertical offset are applied. 2023-05-30 10:50:06 +02:00
Benoit Marty
c590a32942 Move extension to a common file for code clarity. 2023-05-30 10:24:19 +02:00
Benoit Marty
929ed22cb3 Ensure GroupPosition is correct regarding Event which cannot be grouped. 2023-05-30 10:17:25 +02:00
Benoit Marty
6621163d27 Document [TimelineItemGroupPosition] and improve preview of [MessageEventBubble]. 2023-05-30 10:17:25 +02:00
Benoit Marty
6000a7ca5b Let TimelineItemsFactory group the item if necessary, so it's done on a computation dispatcher. Let the View manage the expanded/grouped state. 2023-05-30 10:16:16 +02:00
Jorge Martín
87990c425c Fix small issues, improve Result.flatMap 2023-05-29 13:58:29 +02:00
bmarty
175b7deccb Sync Strings from Localazy 2023-05-29 00:09:47 +00:00
ganfra
698e08573b Media: fix test compilation 2023-05-26 19:21:12 +02:00
ganfra
b2a66ddafe Media: handle PR review remarks 2023-05-26 19:09:51 +02:00
ganfra
c72ecc4807 Media: clean a bit Timestamp rendering 2023-05-26 17:10:34 +02:00
Jorge Martín
15ff1a4d30 Timestamp improvements 2023-05-26 14:37:39 +02:00
Jorge Martín
fc464a35f9 Try to improve timestamp rendering for media 2023-05-26 14:28:37 +02:00
ganfra
462f8c138a Merge branch 'develop' into feature/fga/image_loading 2023-05-26 13:43:51 +02:00
Jorge Martin Espinosa
7aae71c2d4 Display timestamps for text messages (#465) 2023-05-26 10:51:15 +00:00
ganfra
ec4c511c66 Media : Fix small issues after merge 2023-05-26 12:16:14 +02:00
ganfra
2c0771ecc0 Merge branch 'develop' into feature/fga/image_loading 2023-05-26 11:39:34 +02:00
ganfra
2ec2c9b16f Media: continue improving VideoView 2023-05-26 11:29:49 +02:00
Benoit Marty
a77ff69a65 Merge pull request #443 from vector-im/feature/bma/timelineStateEventFormatting
Timeline state event formatting
2023-05-26 10:43:10 +02:00
Marco Romano
b145fcbc50 Enable one last ignored test for LeaveRoomPresenterImpl (#462)
Most of the tests in `LeaveRoomPresenterImplTest.kt` where using `UnconfinedTestDispatcher` which was conflating some of the state returned by the presenter. This prevented to test one specific case which had been left with an `@Ignore` annotation.
This PR switches to `StandardTestDispatcher` so that the ignored test case can work and also fixes some other test cases whose behavior is now more correct under the `StandardTestDispatcher`.

Also updates our test factory method for `CoroutineDispatchers` to more easily obtain a `CoroutineDispatchers` which uses `StandardTestDispatcher`.
2023-05-26 07:51:41 +02:00
ganfra
e0106fe907 Media: some more improvements over MediaViewer 2023-05-25 23:02:19 +02:00
Benoit Marty
6102ffa7e4 Add test for TimelinePresenter: Collapse and expand group. 2023-05-25 18:10:32 +02:00