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:
Mauro
2023-09-25 18:17:36 +02:00
committed by GitHub
parent a2812525e4
commit 1f3898c69d
3 changed files with 4 additions and 22 deletions
@@ -20,17 +20,9 @@ struct SwipeToReplyView: View {
let timelineItem: RoomTimelineItemProtocol
var body: some View {
VStack(spacing: 4) {
Image(systemName: "arrowshape.turn.up.left")
.foregroundColor(.compound.iconPrimary)
if let messageTimelineItem = timelineItem as? EventBasedMessageTimelineItemProtocol,
messageTimelineItem.isThreaded {
Text(L10n.actionReplyInThread)
.font(.compound.bodyXS)
.foregroundColor(.compound.textPrimary)
}
}
.accessibilityHidden(true)
Image(systemName: "arrowshape.turn.up.left")
.foregroundColor(.compound.iconPrimary)
.accessibilityHidden(true)
}
}
@@ -41,16 +33,8 @@ struct SwipeToReplyView_Previews: PreviewProvider, TestablePreview {
isEditable: true,
isThreaded: false, sender: .init(id: ""),
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 {
SwipeToReplyView(timelineItem: timelineItem)
SwipeToReplyView(timelineItem: threadedTimelineItem)
}
}
@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a516bfff3913d6945921fb390af3f256e2bf15982f3a8ac60c7fcabbd0b37749
size 61345
+1
View File
@@ -0,0 +1 @@
Removed the `Reply in Thread` string in the swipe to reply action.