mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 01:22:46 +02:00
Add support for reporting rooms on the room details screen too
This commit is contained in:
@@ -5372,10 +5372,10 @@ static CGSize kThreadListBarButtonItemImageSize;
|
||||
}
|
||||
}
|
||||
|
||||
- (void)handleReportRoomButtonPress
|
||||
- (void)handleReportRoom
|
||||
{
|
||||
// Prompt user to enter a description of the problem content.
|
||||
UIAlertController *reportReasonAlert = [UIAlertController alertControllerWithTitle:[VectorL10n roomEventActionReportPromptReason]
|
||||
UIAlertController *reportReasonAlert = [UIAlertController alertControllerWithTitle:[VectorL10n roomActionReportPromptReason]
|
||||
message:nil
|
||||
preferredStyle:UIAlertControllerStyleAlert];
|
||||
|
||||
@@ -5663,7 +5663,7 @@ static CGSize kThreadListBarButtonItemImageSize;
|
||||
}
|
||||
else if (tappedView == previewHeader.reportButton)
|
||||
{
|
||||
[self handleReportRoomButtonPress];
|
||||
[self handleReportRoom];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8032,6 +8032,11 @@ static CGSize kThreadListBarButtonItemImageSize;
|
||||
[self reloadRoomWihtEventId:event.eventId threadId:event.threadId forceUpdateRoomMarker:NO];
|
||||
}
|
||||
|
||||
- (void)roomInfoCoordinatorBridgePresenterDidRequestReportRoom:(RoomInfoCoordinatorBridgePresenter *)coordinatorBridgePresenter
|
||||
{
|
||||
[self handleReportRoom];
|
||||
}
|
||||
|
||||
-(void)reloadRoomWihtEventId:(NSString *)eventId
|
||||
threadId:(NSString *)threadId
|
||||
forceUpdateRoomMarker:(BOOL)forceUpdateRoomMarker
|
||||
|
||||
Reference in New Issue
Block a user