Stefan Ceriu
3c8daebfe1
Delay rendering bottom timeline items when scrolled up and avoid content shifts
...
- builds on top of langleyd/timeline_defer_new_items
- improve animations
2023-07-31 14:29:40 +03:00
Stefan Ceriu
62f78fb6d0
Fix DM avatars not showing up in room headers. Use the roomListItem avatar instead of the fullRoom one.
2023-07-28 18:57:32 +03:00
Alfonso Grillo
0e7a48d961
"View only" polls in the timeline ( #1399 )
...
* Add stub methods in RoomTimelineItemFactory
* Add PollRoomTimelineView and PollEndRoomTimelineView
* Add timeline skeleton
* Start poll mapping
* Add comment
* Refine poll UI
* Add feature flags for polls
* Cleanup
* Delete poll end event
* Refine poll mapping
* Refine poll layout
* Reuse FormRowAccessory
* Refine poll bubble layout
* Localise strings
* Update project
* Refine poll preview
* Map poll properties
2023-07-27 15:34:27 +02:00
Alfonso Grillo
1529b5b8ca
Update SDK to 1.0.102-alpha ( #1408 )
...
* Update SDK to 1.0.102-alpha
* Log error
* Notification Improvements API part 1 (#1410 )
* changes
* WIP
* progress
* updated test
* removed unused
* code improvement
* Process diffs as batches provided by the SDK.
---------
Co-authored-by: Mauro <34335419+Velin92@users.noreply.github.com >
Co-authored-by: Doug <douglase@element.io >
2023-07-27 09:48:56 +00:00
Alfonso Grillo
ed27aa9a47
Location event body representation ( #1368 )
...
* Change GeoURI body format
* Update location event representation
2023-07-20 13:04:13 +00:00
Mauro Romito
ad1422ad6c
sdk bump
2023-07-18 17:32:11 +02:00
Mauro
19ecf906e3
Redacting is now displayed for moderators in groups ( #1324 )
...
* basic implementation
* sdk update
* format
* changelog
2023-07-18 13:51:27 +00:00
Mauro
76506752b4
SDK Changes Refactor ( #1312 )
...
* internal id
* notification refactor
* client proxy refactor
* required self
* better identifier system
* using the event id when required
* tests fixed
* tested some stuff
* fixed merge conflict
* improved the test wait
* animation disabled
* Bump Rust SDK version to 1.0.98-alpha (#1310 )
* code improvement
* pause sync
* pr suggestions
* result
* Apply suggestions from code review
Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com >
* enum based debug identifier
---------
Co-authored-by: aringenbach <80891108+aringenbach@users.noreply.github.com >
Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com >
2023-07-12 10:28:41 +00:00
Alfonso Grillo
98e7489aaf
Fix membersPublisher queue ( #1308 )
2023-07-11 15:09:18 +02:00
Alfonso Grillo
98dabe8500
Optimize invites list (part 2) ( #1268 )
...
* Optimise invites list
* Fix failing tests
* Cleanup
* Add weak self
* Refactor ReportContentViewModelTests
2023-07-11 08:08:27 +00:00
David Langley
83e27564d5
Add xcDeferFulfillment to help with tests that have publishers. ( #1278 )
...
* Add xcAwaitDeferred to aid with tests that have publishers.
* Improve naming
* Address Comments
- Fix naming
- Add optional expectation message
- Use trailing closure syntax
2023-07-07 15:08:32 +01:00
Mauro
d2fe663003
SDK Bump + Back pagination state listener ( #1274 )
...
* backPagination improved
* sdk bump
* removed unused line
* Update ElementX/Sources/Services/Timeline/TimelineController/RoomTimelineController.swift
Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com >
* cancelling the TaskHandle on deallocation
---------
Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com >
2023-07-07 07:54:40 +00:00
Alfonso Grillo
caf23094b0
Update SDK to 1.0.94-alpha ( #1232 )
...
* Update SDK
* Map new location fields
* Add LocationRoomTimelineItemContent.AssetType
2023-07-04 06:39:32 +00:00
Stefan Ceriu
4e7d05d4b8
Bump the RustSDK to v1.0.92-alpha
2023-06-29 18:01:46 +03:00
Ivan Enderlin
b1dc20e55c
fix: Do not call fullRoom on all rooms.
...
`fullRoom` creates a `Timeline` for the room. Calling this method on all
rooms doesn't make the room list fast :-).
Needs https://github.com/matrix-org/matrix-rust-sdk/pull/2186 to be merged.
2023-06-29 18:01:46 +03:00
Doug
ba79d7f141
Trim newlines from message previews. ( #1208 )
...
- Fixes a bug with replies where the message shows on the line after the sender's name.
2023-06-29 11:34:37 +01:00
Stefan Ceriu
ce7ca32efc
Fixes #954 - Implement media upload cancelling
2023-06-29 13:32:42 +03:00
Stefan Ceriu
d9e608a1e0
Stop running room proxy cleanup in a separate task
2023-06-29 13:31:43 +03:00
Alfonso Grillo
3f6bfbcc14
Open map from timeline ( #1199 )
...
* Add navigation to expaneded map
* Add MapLibreMapView.Options
* Add AppActivityView
* Add ShareToMapsAppActivity
* Add share sheet presentation
* Add localisations
* Cleanup
* Fix UT build errors
* Revert breaking change
* Fix UIView setup
* Add support for location’s description
* Show popover on iPad
* Restore assets
* More cleanup
2023-06-29 09:12:42 +00:00
Stefan Ceriu
e6711a0236
Removed unused swipe gesture (+3 squashed commits)
...
Squashed commits:
[d64bb3bb] Stop using the ServiceLocator directly in the ScreenTrackerViewModifier
[37c46ab9] Rename Analytics to AnalyticsService
[8852a371] #920 - Cleanup ServiceLocator usages
2023-06-28 11:33:41 +03:00
aringenbach
88ac3fb8c6
Rename sendReaction as toggleReaction
2023-06-26 20:25:55 +03:00
Stefan Ceriu
eb691b0a51
Reuse previously build room summaries for diffs that contain invalidations
2023-06-26 13:02:17 +03:00
Alfonso Grillo
1f99e9af8d
Update Matrix SDK to v1.0.84-alpha ( #1147 )
...
* Fix build errors
* Add sendLocation API
* Amend cancelled behavior
2023-06-23 15:14:38 +00:00
Stefan Ceriu
652fd3cf76
Room list service ( #1138 )
...
* Adopt the new RoomListService
* Use client.roomListWithEncryption
* Store the roomList so that it doesn't get dropped and create problems on the rust side
* Use roomListService instead of old roomList client method
* Added back documentation removed by mistake
* Tweaks following code review, SDK bump
2023-06-22 19:59:32 +03:00
Stefan Ceriu
8b11a0a5ec
Add support for media uploading progress
...
- replace the ProgressTracker with a combination of currentValueSubjects and currentValuePublishers
2023-06-22 13:37:13 +03:00
Stefan Ceriu
bbcfec3574
Bump the RustSDK to v1.0.79-alpha
2023-06-21 18:45:26 +02:00
Nicolas Mauri
6d5652d56a
Add posthog events ( #1097 )
2023-06-21 18:00:33 +02:00
Stefan Ceriu
2ae8f471c6
Fixes #978 - Message forwarding support
...
* Add support for message forwarding
* Move the TimelineProvider within the RoomProxy to avoid it going out of sync and have it automatically register for timeline updates on init
* Implement single selection form button style for message forwarding
* Add searching and filter out the source room from the list
* Fixed emoji screen initial search bar height
* Add view models tests
* Add changelog
* Update strings
* Tweaks following code review
2023-06-21 12:10:14 +03:00
Stefan Ceriu
d120a53ebd
Add back custom identifiers for invalidated room, avoid duplicates and gaps on the room list
2023-06-19 17:51:40 +03:00
Stefan Ceriu
ef4346fa08
#1108 - Prevent invites from stealing away the roomList's state listener
2023-06-19 13:38:49 +03:00
Alfonso Grillo
6a85976341
Fix RoomProxy.isEncryptedOneToOneRoom ( #1094 )
2023-06-16 16:35:22 +02:00
Alfonso Grillo
87b0d95e67
Invite again user on direct chats ( #1087 )
...
* Add leaveRoom section for DMs
* Add invite alert in RoomScreenViewModel
* Show alert on composer focus
* Add localisations
* Refine invite alert logics
* Amend tests
* Update project
* Fix local variable name
* Refactor show invite alert logic
2023-06-16 13:36:27 +00:00
Stefan Ceriu
d2d626f724
Add support for the new RoomList API ( #1092 )
...
* Add support for the new RoomList API
Squashed commits:
[8c2625a] Re-enable invites
[339e59b5] Add automatic syncing restarts after entering the terminated state for whatever reason
[b5498e96] Reimplemented room list state management and usage
[8154b0cf] Fix visible rooms range setting after scrolling stops
[5155c44d] Hook up initial loading idicator and session verification banner to room list service states
[700a5a2e] Enable back room subscriptions, timeline listeners and unread notifications / counts
[9df383bc] Enable last messages and timestamps, they don't crash on release builds
[7c4da9da] Add back certain fields now that the "full room" is available
[9f6534a7] Adopt interfaces to new RoomList API, untested as requests don't go to the right URL
* Tweaks following code review
* Bump the RustSDK to v1.0.76-alpha
2023-06-16 16:11:45 +03:00
Mauro
ac41704821
Retry send and cancel send for failed to send messages ( #1088 )
...
* is now possible to open the confirmation dialog and pass the transaction id
* task completed added some tests
* changelog
* title visibility set to .visible
2023-06-16 11:00:54 +02:00
Alfonso Grillo
73eeb051c6
Fix regression on direct chat details ( #1071 )
...
* Fix regression
* Fix UTs
2023-06-13 11:43:25 +00:00
Mauro
1be74e6e69
SDK Bump to 1.0.74 ( #1059 )
...
* testing improvements
* code improvements and sdk bump
* improved the stencil file
* improved the build sdk function
* code improvement
* also added the tearDown
2023-06-09 16:27:08 +00:00
Alfonso Grillo
63df68fd29
Room details: improve members count UX ( #1050 )
...
* Inject user id into room’s details
* Refactor member fetch logic in RoomDetailsScreenViewModel
* Refactor DI
* Fetch members in RoomMembersListScreenViewModel
* Fetch members in InviteUsersScreen
* Use joinedMembersCount in room members list
* Cleanup
* Limit members refresh
* Cleanup binding
* Fix UT build errors
* Fix RoomDetailsScreenViewModelTests
* Fix RoomMembersListScreenViewModelTests
* Fix UTs
* Fix RoomDetailsScreenUITests
* Refine RoomDetailsScreenViewModelTests
* Add roomProxy extension
* PR comments
* Refactor room’s counter to Int
* Improve updateMembers() performances
* Fix memory leaks
2023-06-09 16:21:01 +02:00
Mauro
4b2aba9367
Tapping on user avatar/name in the timeline opens the room member details ( #1020 )
...
* Implementation completed
* changelog
* code improvement
* Apply suggestions from code review
Co-authored-by: Stefan Ceriu <stefanc@matrix.org >
* pr suggestions
---------
Co-authored-by: Stefan Ceriu <stefanc@matrix.org >
2023-06-06 08:46:04 +00:00
Stefan Ceriu
f792aafe8d
Bump the RustSDK, adopt latest sliding sync changes and fixes
2023-05-31 20:31:20 +03:00
Stefan Ceriu
142a8d6275
Prevent race conditions when adding timeline listeners between the timeline provider and other screens
2023-05-26 17:42:39 +03:00
Alfonso Grillo
f2b7faa183
Room's details edit screen ( #956 )
...
* Add RoomDetailsEditScreen template
* Add navigation to the edit screen
* Delete template code
* Start RoomDetailsEditScreen UI
* Manage power levels in RoomDetailsScreen
* Start RoomDetailsEditScreenViewModel logic
* Inject initial room state
* Add cancel action
* Expose set name/topic APIs in RoomProxy
* Refine RoomDetailsEditScreen UI
* Add save logic
* Add localisations
* Fix avatar image
* Update localisations
* Add “Add topic” button
* Add feature flag
* Add dismiss on save logic
* Reduce throttling
* Improve form logic
* Fix UT build errors
* Add media sheet
* Add media preprocessing
* Add LoadableEditableAvatarImage
* Add condition on delete image
* Add avatar save button logic
* Add remove avatar logic
* Cleanup
* Fix edit bug in DM
* Add upload avatar
* Add focus
* Add RoomDetailsViewModel UTs
* Fix button style
* Add UTs
* Add empty topic ui test
* Fix iPad sheet presentation
* Revert topic appearance in room’s details
* Address PR comments
* Add UI tests
2023-05-26 13:47:12 +00:00
Stefan Ceriu
524997438f
Revert "Adopt async uniffi in the RoomSummaryProvider and ensure diffs are still processed serially"
...
This reverts commit d710dafc94 .
2023-05-26 15:01:17 +03:00
Alfonso Grillo
bf2102e5d1
Add room's update publisher ( #952 )
...
* Add room update publisher
* Cleanup
* Update room’s title
* Add refresh logic in RoomDetailsScreenViewModel
* Fix UTs
* Add UT
* Update timeline listener in RoomProxy
* Fix caching in LoadableAvatarImage
* Cleanup
* Update RoomProxy api
* Inject room proxy in RoomScreenViewModel
* Cleanup
* Fix UTs
2023-05-25 10:42:58 +00:00
Stefan Ceriu
d710dafc94
Adopt async uniffi in the RoomSummaryProvider and ensure diffs are still processed serially
2023-05-24 16:07:23 +03:00
Flescio
beb61d109f
Flescio/create room action ( #925 )
...
* fix invites users screen
* add create room action
* add a task runner with timeout, add fetch room summary after creation
* rename Runner, add Unit Test, separate UserProfile form client proxy
* change to all room summary publisher
2023-05-22 15:27:39 +00:00
Alfonso Grillo
d9e0f36aeb
Invite people in an existing room ( #915 )
...
* Handle power levels
* Add “invite” button in RoomMembersListScreen
* Refactor DI in RoomDetailsScreenCoordinator
* Add navigation to “select people” coordinator
* Add InviteUsersScreenRoomContext
* Add invite user by id api
* Updare InviteUsersScreenRoomContext
* Support disabled state on FormButtonStyles
* Handle membership in UserProfileCell
* Fix conflicts
* Refactor RoomContext -> RoomType
* Refactor UserProfileCell
* Add invite action
* Setup navigation to user flow coordinator
* Add invite logic
* Fix test build errors
* Address comments
* Fix localisations
* Update required state
* Handle error
* Move invite logic in RoomDetailsScreenCoordinator
* Add navigation from room’s members list
* Fix UTs
* Fix missing display name in RoomMemberDetails
* Add user indicator
* Add feature flag
* Add RoomDetailsViewModel UTs
* Add room details ui tests
* Add InviteUsersViewModelTests UTs
* Add UI tests
* Update UI tests
* Empty commit
2023-05-22 14:03:07 +00:00
Stefan Ceriu
ce36be4e8b
Adopt latest rust side sliding sync fixes. Relates to https://github.com/matrix-org/matrix-rust-sdk/pull/1936
2023-05-17 16:20:13 +03:00
Stefan Ceriu
f1a26417bd
Add list name to room summary provider logs to avoid confusion between multiple instances
2023-05-16 12:46:06 +03:00
Alfonso Grillo
1981270840
Invited members in room's members list ( #880 )
...
* Add invited people in RoomMembersListScreen
* Optimize main thread perfomance in RoomDetailsScreenViewModel
* Fix member count in RoomDetailsScreenViewModel
* Add warning
* Add performance warnings
* Build members in RoomMembersListScreenViewModel in global queue
* Refactor RoomDetailsScreenViewModel build members process
* Localize strings
* Cleanup
* Fix RoomDetailsScreenViewModelTests UTs
* Fix UI tests
* Add RoomMembersListScreenViewModel UTs
* Add UI tests
* Amend UI tests
* Use clearAndTypeText
2023-05-12 13:12:59 +00:00
Stefan Ceriu
17cfd3ca31
Promote last message room list fetching to .userInitiated
2023-05-11 17:31:44 +03:00