mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:06:00 +00:00
Further design updates to the timeline. (#524)
- Decryption banner on the timeline - Bubble colours - Background insets - Multiline composer corner radius - Read marker - GIF indicator - Reactions shape - Use RoomTimelineViewLabelStyle everywhere possible - Only set a line limit on reply quotes, allow all the lines for regular quotes. - Message label icons - Yes/No button casing - Make sender profiles immutable. - Enable copy link and invite buttons. - Fix layout loop detecting multiline composer text. - Add animation to the encryption banner.
This commit is contained in:
@@ -94,7 +94,11 @@ struct AttributedStringBuilder: AttributedStringBuilderProtocol {
|
||||
attributedString.removeSubrange(range)
|
||||
}
|
||||
|
||||
return AttributedStringBuilderComponent(attributedString: attributedString, isBlockquote: value != nil)
|
||||
let isBlockquote = value != nil
|
||||
/// This is a temporary workaround until replies are retrieved from the SDK.
|
||||
let isReply = isBlockquote && attributedString.characters.starts(with: "In reply to @")
|
||||
|
||||
return AttributedStringBuilderComponent(attributedString: attributedString, isBlockquote: isBlockquote, isReply: isReply)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@ import Foundation
|
||||
struct AttributedStringBuilderComponent: Hashable {
|
||||
let attributedString: AttributedString
|
||||
let isBlockquote: Bool
|
||||
let isReply: Bool
|
||||
}
|
||||
|
||||
protocol AttributedStringBuilderProtocol {
|
||||
|
||||
Reference in New Issue
Block a user