Commit Graph

88 Commits

Author SHA1 Message Date
SBiOSoftWhare 988dff272e RoomVC: Prevent retain cycles. 2021-10-28 17:41:16 +02:00
Doug 316a44c21c Add tags to URLPreviewView and BubbleReactionsView so their highlight behaviour matches their bubble component.
Fix bug setting text alpha.
2021-10-13 14:05:06 +01:00
Doug 0764252138 Check whether URL previews should be shown in a single location.
Reset all cell data when this setting is changed to force a refresh.
Rename `hasClosedPreview(from:)` to `shouldShowPreview(for:)` for clarity and potentially adding more rules at a later date.
2021-09-29 11:39:11 +01:00
Doug f790d3dcae Add invalidateLayout to RoomBubbleCellData. 2021-09-29 10:36:35 +01:00
Doug 2887fd27ef Use bubbleComponentWithLinkForEventId: in RoomDataSource. 2021-09-27 18:43:53 +01:00
Doug 6745fe48f4 Move URL preview properties from RoomBubbleCellData in MXKRoomBubbleComponent.
Stop breaking up the bubble data for links now that vertical whitespace is added.
2021-09-27 18:15:48 +01:00
Doug 6bae045bad Include URL previews in addVerticalWhitespaceToString:forEvent: and remove heightForCellData:withMaximumWidth: from the various TextMsgBubbleCell subclasses.
Use the bubble cell data's available width when sizing URL previews and update the defaultAvailableWidth and reducedWidthThreshold accordingly.
2021-09-23 17:30:24 +01:00
Doug 3729440196 Reduce the width of URL previews on 4" devices. 2021-09-16 16:41:21 +01:00
Doug 4a33f7f1e6 Update for PR feedback.
URLPreviewManager becomes URLPreviewService.
addVerticalWhitespaceToString used instead of heightForCellData multiple times.
All newline characters removed.
2021-09-08 15:10:13 +01:00
Doug 5acbc20fc9 Add more docs and comments.
Rename store.store(_:) to store.cache(_:).
2021-09-08 09:51:47 +01:00
Doug f2f40aa0b6 Observe URL preview update notification in RoomViewController.
Update bubbleTableView's content offset when a preview above the bottom most visible cell changes the height of the table's content.
2021-09-07 14:49:51 +01:00
Doug 85caa0a23f Fix potentially redundant table reloading. 2021-09-03 18:18:36 +01:00
Doug 39812e6f89 Fix reactions beneath URL previews. 2021-09-03 12:07:29 +01:00
Doug 72a89e267b Add setting to disable URL previews.
Using a temporary position in the settings screen whilst waiting for feedback.
2021-09-03 10:19:26 +01:00
Doug aace9d0a96 Show an activity indicator until the preview has loaded. 2021-09-02 17:37:48 +01:00
Doug 3c85db9f3d Refactoring and tidy up.
Make the preview manager a singleton (passing in the MXSession to functions). Fix tests.

PreviewManager → URLPreviewManager
URLPreviewViewData → URLPreviewData
URLPreviewCache → URLPreviewStore
2021-09-01 12:28:56 +01:00
Doug e6449c978c Load and store URLPreviewViewData in RoomBubbleCellData.
Implement close button and store the action in Core Data. Hide the preview image view when no image is received. Remove line breaks in description text.
2021-09-01 10:37:37 +01:00
Doug 445db8ba78 Use the layer's corner radius rather than a custom mask.
This will ensure the mask bounds always match the view's size.
2021-07-14 10:37:54 +01:00
Doug fa1bbecf26 Always update the path of the attachmentView's mask to handle reuse. 2021-07-14 10:15:50 +01:00
Doug 0d16d30149 Use updated methods in MatrixKit. 2021-07-12 14:02:29 +01:00
Doug 1ca51de204 Fix sending a video selected from a document picker. 2021-07-08 17:41:55 +01:00
Stefan Ceriu b00d07ffca Adopt consolidated logging mechanism (#4370)
* Adopted the new MXLog and replaced NSLog throughout the application - vector-im/element-ios/issues/4351
* Replaced NSLog() and print() usages with MXLog.debug()
* Added swiftlint rules for NSLog(), print(), println() and os_log()
* Escape paths used to run script build phases for swiftlint and swiftgen
2021-06-03 11:30:07 +03:00
ismailgulek 6cac2a87a0 Merge branch 'develop' into voip_design_updates 2021-04-09 15:12:51 +03:00
Gil Eluard b713ecd1a2 Update after review 2021-04-08 15:59:53 +02:00
Gil Eluard ceb6ad690d Update after review 2021-04-08 15:19:02 +02:00
Gil Eluard 96408aea02 Limit typing notifications timeline jumps 2021-04-06 13:09:30 +02:00
ismailgulek c089fe4b3e Merge branch 'develop' into voip_design_updates 2021-04-02 14:39:37 +03:00
Gil Eluard dcc5b9cccb Explore typing notifications inspired by web
- prevent timeline from going up and down by keeping the space allocated for the typing notification
2021-03-29 22:26:03 +02:00
Gil Eluard 7fb8dc95ab Explore typing notifications inspired by web
- bug fixing
2021-03-25 11:53:45 +01:00
Gil Eluard 4834042b8e Explore typing notifications inspired by web
- First iteration
2021-03-22 19:55:41 +01:00
manuroe cbced365be Merge pull request #4127 from vector-im/4115_remove_shields_from_room_list
Room lists: Remove shields on room avatars
2021-03-19 09:54:54 +01:00
manuroe c128a81792 Room lists: Remove shields on room avatars
#4115

but keep it in the room screen
2021-03-17 15:32:01 +01:00
ismailgulek 559eea9bf4 Merge branch 'develop' into voip_design_updates 2021-03-17 16:37:52 +03:00
ismailgulek 1965047c80 Fix returning number of rows in room data source 2021-03-17 15:54:10 +03:00
ismailgulek cb3a72c64b Fix #4125 2021-03-17 00:49:07 +03:00
Gil Eluard 5014af92d3 Merge branch 'element_4014' into element_4013
# Conflicts:
#	Riot/Modules/Room/DataSources/RoomDataSource.m
2021-03-09 13:22:13 +01:00
Gil Eluard 66d4305644 Improve the status of send messages (sending, sent, received, failed)
- update after review
2021-03-09 11:59:54 +01:00
Gil Eluard f763ad90d7 Retrying & deleting failed messages
- If users press on Retry, send again the message and display a loading wheel
- code and UI tweaks
2021-03-03 10:27:08 +01:00
Gil Eluard e0e9c979a1 Improve the status of send messages (sending, sent, received, failed)
- Code tweaks
2021-02-26 07:19:46 +01:00
Gil Eluard dd720a68fb Merge branch 'develop' into element_4014
# Conflicts:
#	Riot.xcodeproj/project.pbxproj
#	Riot/Modules/Room/DataSources/RoomDataSource.m
2021-02-25 15:49:53 +01:00
Gil Eluard 7a1a0c0c51 Improve the status of send messages (sending, sent, received, failed)
- tweaks and new L&F for download progress
2021-02-25 11:07:21 +01:00
Gil Eluard d256c63ba7 Improve the status of send messages (sending, sent, received, failed)
- Code tweaks
2021-02-23 22:05:39 +01:00
Gil Eluard 550d5b316d Improve the status of send messages (sending, sent, received, failed)
- Bug fixing and imporvement
2021-02-23 21:21:15 +01:00
SBiOSoftWhare 41b3dffa1f RoomDataSource: Fix insertRoomCreationIntroCellDataIfNeeded method. 2021-02-23 09:34:27 +01:00
SBiOSoftWhare 00d6397956 RoomDataSource: Add thread safety instructions for bubbles array in insertRoomCreationIntroCellDataIfNeeded. 2021-02-23 08:47:50 +01:00
Gil Eluard c7e3155949 Improve the status of send messages (sending, sent, received, failed)
- First implementation
2021-02-22 13:51:25 +01:00
SBiOSoftWhare 763673ecb7 RoomDataSource: Handle RoomCreationIntroCell conditional display. 2021-02-22 00:12:00 +01:00
SBiOSoftWhare e130bd2ec2 RoomDataSource: Handle cells conforming to BubbleCellReactionsDisplayable. 2020-08-04 17:25:53 +02:00
manuroe bd7bd7c59f Jitsi: Support v1 and v2 widget types 2020-04-24 09:04:49 +02:00
SBiOSoftWhare 23a02c362c Refactor DeviceVerification prefix classes to KeyVerification where needed. And move key verification related classes into the same module KeyVerification. 2020-03-18 17:39:26 +01:00