Do not let users report their own chat messages
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
5c862645eb
commit
050ee1a5f0
|
@ -268,12 +268,15 @@ class ChatMessageList extends ImmutablePureComponent {
|
|||
icon: require('@tabler/icons/icons/trash.svg'),
|
||||
destructive: true,
|
||||
},
|
||||
{
|
||||
];
|
||||
|
||||
if (chatMessage.get('account_id') !== me) {
|
||||
menu.push({
|
||||
text: intl.formatMessage(messages.report),
|
||||
action: this.handleReportUser(chatMessage.get('account_id')),
|
||||
icon: require('@tabler/icons/icons/flag.svg'),
|
||||
},
|
||||
];
|
||||
});
|
||||
}
|
||||
|
||||
return (
|
||||
<div
|
||||
|
|
|
@ -329,7 +329,7 @@
|
|||
"edit_federation.save": "Zapisz",
|
||||
"edit_federation.success": "Zaktualizowano federację {host}",
|
||||
"edit_federation.unlisted": "Wymuś oznaczanie wpisów jako niewypisane",
|
||||
"edit_profile.error": "Akktualizacja profilu nie powiodła się",
|
||||
"edit_profile.error": "Aktualizacja profilu nie powiodła się",
|
||||
"edit_profile.fields.accepts_email_list_label": "Zasubskrybuj newsletter",
|
||||
"edit_profile.fields.avatar_label": "Awatar",
|
||||
"edit_profile.fields.bio_label": "Opis",
|
||||
|
|
Loading…
Reference in New Issue