Chat screen: Add "view source" option on the selected event #459

This commit is contained in:
manuroe
2016-09-02 10:07:46 +02:00
parent 0cca5f4c8a
commit bd09333676
2 changed files with 13 additions and 0 deletions
@@ -1748,6 +1748,18 @@
}];
}
if (level == 1)
{
[currentAlert addActionWithTitle:NSLocalizedStringFromTable(@"room_event_action_view_source", @"Vector", nil) style:MXKAlertActionStyleDefault handler:^(MXKAlert *alert) {
__strong __typeof(weakSelf)strongSelf = weakSelf;
[strongSelf cancelEventSelection];
// Display event details
[strongSelf showEventDetails:selectedEvent];
}];
}
if (level == 1)
{
[currentAlert addActionWithTitle:NSLocalizedStringFromTable(@"room_event_action_report", @"Vector", nil) style:MXKAlertActionStyleDefault handler:^(MXKAlert *alert) {