Commit Graph

126 Commits

Author SHA1 Message Date
ismailgulek a314deb7a1 Merge branch 'develop' into ismail/5068_start_thread 2022-01-17 11:35:10 +03:00
SBiOSoftWhare 02453bbac1 RoomBubbleCellData: Handle event merge configuration. 2022-01-14 11:14:50 +01:00
Stefan Ceriu 2ef67f3ed2 vector-im/element-ios/issues/5298 - Displaying a modal when tapping on a location in the timeline. 2022-01-04 17:33:32 +02:00
Stefan Ceriu 7826faf6ea vector-im/element-ios/issues/5298 - Added body message content keys and replaced plain string usages. 2022-01-04 17:33:32 +02:00
Stefan Ceriu 9c66b5b7b1 vector-im/element-ios/issues/5298 - Replaced "msgtype" strings with new kMXMessageTypeKey. 2022-01-04 17:33:32 +02:00
Stefan Ceriu c1a3fede8f Rendering location messages in the timeline. 2022-01-04 17:33:32 +02:00
ismailgulek c47672a07e Merge branch 'develop' into ismail/5068_start_thread 2021-12-16 14:00:03 +03:00
Stefan Ceriu 3de1a8525c vector-im/element-ios/issues/5114 - Prevent poll events from ever getting merged into other bubble data. 2021-12-10 15:55:17 +02:00
ismailgulek 3a6e7a19e2 Merge branch 'develop' into ismail/5068_start_thread 2021-12-09 15:25:14 +03:00
Stefan Ceriu ac6561a3d3 vector-im/element-ios/issues/5114 - Polls in the timeline. 2021-12-09 09:37:02 +02:00
SBiOSoftWhare e8d4af46d2 Update all Objective-C MatrixKit imports to handle new location. 2021-11-30 16:09:53 +01:00
ismailgulek 5dfb0fbbfe Merge branch 'develop' into ismail/5068_start_thread 2021-11-30 01:33:51 +03:00
SBiOSoftWhare 2709236dd5 Improve generated Swift header imports. 2021-11-25 23:11:53 +01:00
ismailgulek 8c1dbd8311 Merge branch 'develop' into ismail/5068_start_thread 2021-11-11 21:43:16 +03:00
ismailgulek 8cfbf9c4c7 Create ThreadSummaryView 2021-11-09 16:50:02 +03:00
ismailgulek 70aea8cf92 Add additional height in the cell for thread summary view 2021-11-09 14:46:35 +03:00
Philippe Loriaux 216924165d Improve the Obj-C Generated Interface Header Name definition 2021-10-26 17:42:33 +02:00
Doug ef572d42fe Stop requesting URL previews if the feature has been disabled on the homeserver. 2021-10-13 12:51:15 +01:00
Stefan Ceriu 8b80b3f4c7 vector-im/element-ios/issues/4899 - Replaced (*almost*) all NSLocalizedString calls with newly generated ObjC methods. 2021-09-30 09:40:12 +03:00
Doug bf84540b39 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 57018f90ee Add invalidateLayout to RoomBubbleCellData. 2021-09-29 10:36:35 +01:00
Doug 3923c8fa53 Use bubbleComponentWithLinkForEventId: in RoomDataSource. 2021-09-27 18:43:53 +01:00
Doug 29c428167f 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 e3744f0763 Rename refreshAttributedTextMessage to makeAttributedString to indicate that it doesn't affect the attributedTextMessage. 2021-09-24 17:06:50 +01:00
Doug 88e4427961 Rename setNeedsUpdateContent to invalidateTextLayout. 2021-09-24 15:33:04 +01:00
Doug 5898a98a83 Use setNeedsUpdateContent instead of setting the attributed string to nil. 2021-09-24 15:19:24 +01:00
Doug 6561b2151a 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 4910ef37ee Override hasLink in RoomBubbleCellData to only check the last component. 2021-09-13 17:47:52 +01:00
Doug 9029aaecda Ensure the last bubble component has a link before loading the URL preview. 2021-09-13 16:49:34 +01:00
Doug 0c4357c3b0 Revert height computation for now. 2021-09-08 15:59:30 +01:00
Doug 1963f35d30 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 8d4a4706d6 Fix potentially redundant table reloading. 2021-09-03 18:18:36 +01:00
Doug e2de545c8b Break-up cell data after a link even if the new event isn't a message. 2021-09-03 11:52:57 +01:00
Doug 6682e17976 Hide the loading state on error. 2021-09-03 11:32:09 +01:00
Doug fc36f1cc37 Fix edits to previewable links not working. 2021-09-03 11:21:07 +01:00
Doug 885f3208bf Show an activity indicator until the preview has loaded. 2021-09-02 17:37:48 +01:00
Doug 882fcab738 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 4331994d72 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 dd600e5e7e Add PreviewManger with Core Data cache and a URLPreviewView with a view model.
Changes to RoomDataSource still to come.
2021-08-23 17:56:24 +01:00
Doug ef92d49456 Merge branch 'develop' into doug/888_add_url_previews 2021-08-17 10:29:30 +01:00
Doug 4b31d83c37 Begin adding link detection to RoomBubbleCellData. 2021-07-21 15:14:25 +01:00
Stefan Ceriu 29e5557f7a #4096 - Added voice message decoding, timeline cell and playback UI. 2021-06-22 09:42:37 +03:00
Stefan Ceriu 43f6c44c78 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 1d2ae04058 Introduce group call tiles 2021-03-17 19:39:41 +03:00
ismailgulek 335ddf78e8 Fix #4125 2021-03-17 00:49:07 +03:00
ismailgulek b5c760ee1f Include call answer and hangup events in the bubble 2021-03-12 02:24:07 +03:00
Gil Eluard 230498192a Improve the status of send messages (sending, sent, received, failed)
- update after review
2021-03-09 11:59:54 +01:00
SBiOSoftWhare e5796073c8 RoomBubbleCellData: Add new tag to handle RoomCreationIntroCell. 2021-02-22 00:12:00 +01:00
ismailgulek 9c851d4a8c Group call invite and reject events with a new tag 2021-01-20 13:13:04 +03:00
ismailgulek 064f3b0e47 Fix grouping 2020-10-02 11:48:12 +03:00