mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
remove reply in thread in the swipe action (#1795)
* remove `reply in thread` in the swipe action * changelog * removed v stack
This commit is contained in:
@@ -20,17 +20,9 @@ struct SwipeToReplyView: View {
|
|||||||
let timelineItem: RoomTimelineItemProtocol
|
let timelineItem: RoomTimelineItemProtocol
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
VStack(spacing: 4) {
|
Image(systemName: "arrowshape.turn.up.left")
|
||||||
Image(systemName: "arrowshape.turn.up.left")
|
.foregroundColor(.compound.iconPrimary)
|
||||||
.foregroundColor(.compound.iconPrimary)
|
.accessibilityHidden(true)
|
||||||
if let messageTimelineItem = timelineItem as? EventBasedMessageTimelineItemProtocol,
|
|
||||||
messageTimelineItem.isThreaded {
|
|
||||||
Text(L10n.actionReplyInThread)
|
|
||||||
.font(.compound.bodyXS)
|
|
||||||
.foregroundColor(.compound.textPrimary)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.accessibilityHidden(true)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -41,16 +33,8 @@ struct SwipeToReplyView_Previews: PreviewProvider, TestablePreview {
|
|||||||
isEditable: true,
|
isEditable: true,
|
||||||
isThreaded: false, sender: .init(id: ""),
|
isThreaded: false, sender: .init(id: ""),
|
||||||
content: .init(body: ""))
|
content: .init(body: ""))
|
||||||
static let threadedTimelineItem = TextRoomTimelineItem(id: .init(timelineID: ""),
|
|
||||||
timestamp: "",
|
|
||||||
isOutgoing: true,
|
|
||||||
isEditable: true,
|
|
||||||
isThreaded: true,
|
|
||||||
sender: .init(id: ""),
|
|
||||||
content: .init(body: ""))
|
|
||||||
|
|
||||||
static var previews: some View {
|
static var previews: some View {
|
||||||
SwipeToReplyView(timelineItem: timelineItem)
|
SwipeToReplyView(timelineItem: timelineItem)
|
||||||
SwipeToReplyView(timelineItem: threadedTimelineItem)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:a516bfff3913d6945921fb390af3f256e2bf15982f3a8ac60c7fcabbd0b37749
|
|
||||||
size 61345
|
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Removed the `Reply in Thread` string in the swipe to reply action.
|
||||||
Reference in New Issue
Block a user