mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
Show Only Retry Decryption and View Source for Unencrypted messages (#1202)
* show only retryDecryption for unencrypted message * fix
This commit is contained in:
@@ -77,6 +77,12 @@ public struct TimelineItemMenu: View {
|
||||
|
||||
let item: EventBasedTimelineItemProtocol
|
||||
let actions: TimelineItemMenuActions
|
||||
|
||||
private var canShowReactions: Bool {
|
||||
!item.isRedacted &&
|
||||
!item.hasFailedToSend &&
|
||||
!item.hasFailedDecryption
|
||||
}
|
||||
|
||||
public var body: some View {
|
||||
VStack {
|
||||
@@ -88,7 +94,7 @@ public struct TimelineItemMenu: View {
|
||||
|
||||
ScrollView {
|
||||
VStack(alignment: .leading, spacing: 0.0) {
|
||||
if !item.isRedacted, !item.hasFailedToSend {
|
||||
if canShowReactions {
|
||||
reactionsSection
|
||||
.padding(.top, 4.0)
|
||||
.padding(.bottom, 8.0)
|
||||
|
||||
Reference in New Issue
Block a user