Remove unused settings appearance section and txid handling warnings

This commit is contained in:
Stefan Ceriu
2022-11-28 17:11:03 +02:00
committed by Stefan Ceriu
parent df02fef22e
commit 7cb46186c4
3 changed files with 0 additions and 31 deletions

View File

@@ -32,9 +32,6 @@ struct SettingsScreen: View {
userSection
.listRowBackground(rowBackgroundColor)
appearanceSection
.listRowBackground(rowBackgroundColor)
analyticsSection
.listRowBackground(rowBackgroundColor)
@@ -84,28 +81,6 @@ struct SettingsScreen: View {
}
}
private var appearanceSection: some View {
Section {
Button(action: appearance) {
HStack {
Image(systemName: "paintpalette")
.foregroundColor(.element.systemGray)
.padding(4)
.background(Color.element.systemGray6)
.clipShape(Circle())
.frame(width: menuIconSize, height: menuIconSize)
Text(ElementL10n.settingsAppearance)
Spacer()
Image(systemName: "chevron.forward")
.foregroundColor(.element.tertiaryContent)
}
}
.listRowInsets(listRowInsets)
.foregroundColor(.element.primaryContent)
.accessibilityIdentifier("appearanceButton")
}
}
@ViewBuilder
private var userAvatar: some View {
if let avatar = context.viewState.userAvatar {
@@ -205,10 +180,6 @@ struct SettingsScreen: View {
.accessibilityIdentifier("closeButton")
}
private func appearance() {
#warning("Not implemented")
}
private func close() {
context.send(viewAction: .close)
}

View File

@@ -36,7 +36,6 @@ struct MessageTimelineItem<Content: MessageContentProtocol> {
let content: Content
var id: String {
#warning("Handle txid properly")
switch item.key() {
case .transactionId(let txnID):
return txnID

View File

@@ -51,7 +51,6 @@ struct EventTimelineItemProxy: CustomDebugStringConvertible {
}
var id: String {
#warning("Handle txid in a better way")
switch item.key() {
case .transactionId(let txnID):
return txnID