Commit graph

56 commits

Author SHA1 Message Date
Doug
4198fa096a Add invalidateLayout to RoomBubbleCellData. 2021-09-29 10:36:35 +01:00
Doug
66c92fbe03 Use bubbleComponentWithLinkForEventId: in RoomDataSource. 2021-09-27 18:43:53 +01:00
Doug
f44e1b098e 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
9c7284c832 Rename refreshAttributedTextMessage to makeAttributedString to indicate that it doesn't affect the attributedTextMessage. 2021-09-24 17:06:50 +01:00
Doug
574779fff3 Rename setNeedsUpdateContent to invalidateTextLayout. 2021-09-24 15:33:04 +01:00
Doug
6293efc155 Use setNeedsUpdateContent instead of setting the attributed string to nil. 2021-09-24 15:19:24 +01:00
Doug
0edf6ba7d6 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
721e5daa23 Override hasLink in RoomBubbleCellData to only check the last component. 2021-09-13 17:47:52 +01:00
Doug
2b11d4d325 Ensure the last bubble component has a link before loading the URL preview. 2021-09-13 16:49:34 +01:00
Doug
26567464e4 Revert height computation for now. 2021-09-08 15:59:30 +01:00
Doug
24afc7af6c 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
55df9303de Fix potentially redundant table reloading. 2021-09-03 18:18:36 +01:00
Doug
7db81ccf2a 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
80f8cc6dac Hide the loading state on error. 2021-09-03 11:32:09 +01:00
Doug
be83d8e2f6 Fix edits to previewable links not working. 2021-09-03 11:21:07 +01:00
Doug
1831b61b12 Show an activity indicator until the preview has loaded. 2021-09-02 17:37:48 +01:00
Doug
a81ebbd0aa 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
59e541667e 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
29758d1aa7 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
661b53622d Merge branch 'develop' into doug/888_add_url_previews 2021-08-17 10:29:30 +01:00
Doug
eacb8a4653 Begin adding link detection to RoomBubbleCellData. 2021-07-21 15:14:25 +01:00
Stefan Ceriu
ff3170e031 #4096 - Added voice message decoding, timeline cell and playback UI. 2021-06-22 09:42:37 +03:00
Stefan Ceriu
f7a8163947
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
a5e52c76f4
Introduce group call tiles 2021-03-17 19:39:41 +03:00
ismailgulek
384032759d
Fix #4125 2021-03-17 00:49:07 +03:00
ismailgulek
3c7dcf8398
Include call answer and hangup events in the bubble 2021-03-12 02:24:07 +03:00
Gil Eluard
1a71e61a66 Improve the status of send messages (sending, sent, received, failed)
- update after review
2021-03-09 11:59:54 +01:00
SBiOSoftWhare
85aaf28c45 RoomBubbleCellData: Add new tag to handle RoomCreationIntroCell. 2021-02-22 00:12:00 +01:00
ismailgulek
f30b7af7a0 Group call invite and reject events with a new tag 2021-01-20 13:13:04 +03:00
ismailgulek
a01e10a27f Fix grouping 2020-10-02 11:48:12 +03:00
ismailgulek
2a00687798 Only collapse bubbles both have the roomCreate tag 2020-10-01 17:19:22 +03:00
ismailgulek
e11755afca Tag room creator's join event appropriately 2020-10-01 17:18:32 +03:00
ismailgulek
a3e1ab2d55 Add new tag: RoomBubbleCellDataTagRoomCreateConfiguration 2020-09-14 14:11:24 +03:00
SBiOSoftWhare
78f7cdf942 RoomBubbleCellData: Factorize additional view height calculation and use BubbleReactionsViewSizer to get reactions view height. 2020-07-31 18:32:44 +02:00
SBiOSoftWhare
d9408dda33 RoomBubbleCellData: Handle key verification cells. Add key verification property and add key verification cell data tags. 2020-01-14 19:46:02 +01:00
SBiOSoftWhare
4dcc6fb861 RoomBubbleCellData: Add new tags in RoomBubbleCellDataTag for key verification cells. 2019-12-20 10:35:04 +01:00
manuroe
d79ce22df5 VoiceOver: RoomVC: No VoiceOver on media
#2726
2019-09-20 16:25:15 +02:00
SBiOSoftWhare
593e3b3765 RoomBubbleCellData: Add a method to get first visible component index. 2019-07-08 18:34:08 +02:00
manuroe
2a22e4c0a9 Reactions: Show at most 8 reactions
#2510
2019-07-04 11:38:48 +02:00
SBiOSoftWhare
98361afa6f e2e room message: Fix padlock position on last message with sender name. 2019-06-20 12:07:04 +02:00
SBiOSoftWhare
2b28f25883 Merge develop into fix_riot_attachmentview_reactions 2019-06-19 11:44:42 +02:00
SBiOSoftWhare
3295b649c9 RoomBubbleCellData: Add additionalContentHeight property to cache additional views height like reactions view and read receipts container. 2019-06-18 18:30:39 +02:00
SBiOSoftWhare
0809c8af55 RoomBubbleCellData: Fix bubble component position when display last message timestamp. 2019-06-18 17:42:00 +02:00
manuroe
ba6d5939a3 Read receipts: They are now counted at the MatrixKit level 2019-06-18 12:28:59 +02:00
SBiOSoftWhare
99b746681b RoomBubbleCellData: Fix reactions height calculation. Fix timestamp position. 2019-05-29 12:24:43 +02:00
SBiOSoftWhare
a62548c545
Update Riot/Modules/Room/CellData/RoomBubbleCellData.h
Co-Authored-By: manuroe <manuroe@users.noreply.github.com>
2019-05-22 17:27:29 +02:00
SBiOSoftWhare
b234a09bf1 RoomBubbleCellData: Add a property to display the timestamp of the selected component on the left when there is enough space. 2019-05-22 16:17:55 +02:00
SBiOSoftWhare
75d7b26bfc RoomBubbleCellData: Improve reactions view vertical space calculation 2019-05-20 21:57:29 +02:00
manuroe
00bebecc29 Reactions: Add placeholder for reactions list under message 2019-05-17 01:28:45 +02:00
manuroe
3249751dc2 RoomBubbleCellData: Do readReceiptVerticalWhitespace thing in one place 2019-05-16 18:27:48 +02:00