Add support for reporting rooms on the room details screen too

This commit is contained in:
Stefan Ceriu
2024-06-12 17:43:35 +03:00
parent 87577f5692
commit b691d02a20
15 changed files with 51 additions and 6 deletions

View File

@@ -222,8 +222,16 @@ final class RoomInfoListViewController: UIViewController {
rows: [rowLeave],
footer: nil)
let rowReport = Row(type: .destructive, icon: Asset.Images.error.image, text: VectorL10n.roomEventActionReport, accessoryType: .disclosureIndicator) {
self.viewModel.process(viewAction: .report)
}
let sectionReport = Section(header: nil,
rows: [rowReport],
footer: nil)
tmpSections.append(sectionSettings)
tmpSections.append(sectionLeave)
tmpSections.append(sectionReport)
sections = tmpSections
}