Fixes #1699 - Introduce a new advanced settings screen (#1700)

This commit is contained in:
Stefan Ceriu
2023-09-14 08:37:42 +03:00
committed by GitHub
parent 21856e994a
commit 761d508ae5
18 changed files with 309 additions and 75 deletions
@@ -501,7 +501,10 @@ class RoomScreenViewModel: RoomScreenViewModelType, RoomScreenViewModelProtocol
return nil
}
var debugActions: [TimelineItemMenuAction] = appSettings.canShowDeveloperOptions ? [.viewSource] : []
var debugActions: [TimelineItemMenuAction] = []
if appSettings.canShowDeveloperOptions || appSettings.viewSourceEnabled {
debugActions.append(.viewSource)
}
if let encryptedItem = timelineItem as? EncryptedRoomTimelineItem {
switch encryptedItem.encryptionType {