Report abusif content and Ignore user.

Add unignore option
This commit is contained in:
giomfo
2016-05-04 10:54:46 +02:00
parent 95d36c8033
commit e12f7220ae
2 changed files with 18 additions and 6 deletions
+5 -4
View File
@@ -123,7 +123,8 @@
"room_participants_action_remove" = "Remove from this room";
"room_participants_action_ban" = "Ban from this room";
"room_participants_action_unban" = "Unban";
"room_participants_action_ignore" = "Ignore";
"room_participants_action_ignore" = "Hide the user's messages";
"room_participants_action_unignore" = "Show the user's messages";
"room_participants_action_set_default_power_level" = "Reset to normal user";
"room_participants_action_set_moderator" = "Make moderator";
"room_participants_action_set_admin" = "Make admin";
@@ -145,9 +146,9 @@
"room_event_action_share" = "Share";
"room_event_action_redact" = "Redact";
"room_event_action_permalink" = "Permalink";
"room_event_action_report" = "Report";
"room_event_action_report_prompt_reason" = "Enter a description of the problem content";
"room_event_action_report_prompt_ignore_user" = "Do you want to ignore content from this user";
"room_event_action_report" = "Report to moderator";
"room_event_action_report_prompt_reason" = "Reason for reporting this content";
"room_event_action_report_prompt_ignore_user" = "The content was successfully reported. Do you wish to hide all messages from this user?";
"room_event_action_save" = "Save";
"room_event_action_resend" = "Resend";
"room_event_action_delete" = "Delete";
@@ -360,9 +360,17 @@
}
// Check whether the option Ignore may be presented
if (self.mxRoomMember.membership == MXMembershipJoin /*FIXME: is he already ignored ?*/)
if (self.mxRoomMember.membership == MXMembershipJoin)
{
[actionsArray addObject:@(MXKRoomMemberDetailsActionIgnore)];
//FIXME: is he already ignored ?
// if ()
{
[actionsArray addObject:@(MXKRoomMemberDetailsActionIgnore)];
}
// else
// {
// [actionsArray addObject:@(MXKRoomMemberDetailsActionUnignore)];
// }
}
break;
}
@@ -423,6 +431,9 @@
case MXKRoomMemberDetailsActionIgnore:
title = NSLocalizedStringFromTable(@"room_participants_action_ignore", @"Vector", nil);
break;
case MXKRoomMemberDetailsActionUnignore:
title = NSLocalizedStringFromTable(@"room_participants_action_unignore", @"Vector", nil);
break;
case MXKRoomMemberDetailsActionSetDefaultPowerLevel:
title = NSLocalizedStringFromTable(@"room_participants_action_set_default_power_level", @"Vector", nil);
break;