Report abusif content and Ignore user.

- Room member: Add new option Ignore to ignore content from a room member
- Chat screen: Add report option in the contextual per-message menu + Option to ignore the event sender
This commit is contained in:
giomfo
2016-05-03 18:29:54 +02:00
parent 8c3b8ffec8
commit 8168641c42
3 changed files with 143 additions and 44 deletions
@@ -358,6 +358,12 @@
{
[actionsArray addObject:@(MXKRoomMemberDetailsActionBan)];
}
// Check whether the option Ignore may be presented
if (self.mxRoomMember.membership == MXMembershipJoin /*FIXME: is he already ignored ?*/)
{
[actionsArray addObject:@(MXKRoomMemberDetailsActionIgnore)];
}
break;
}
case MXMembershipLeave:
@@ -414,6 +420,9 @@
case MXKRoomMemberDetailsActionUnban:
title = NSLocalizedStringFromTable(@"room_participants_action_unban", @"Vector", nil);
break;
case MXKRoomMemberDetailsActionIgnore:
title = NSLocalizedStringFromTable(@"room_participants_action_ignore", @"Vector", nil);
break;
case MXKRoomMemberDetailsActionSetDefaultPowerLevel:
title = NSLocalizedStringFromTable(@"room_participants_action_set_default_power_level", @"Vector", nil);
break;