mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-18 07:28:28 +02:00
Add support for reporting rooms on the room details screen too
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user